diff options
author | Edward Hervey <edward@centricular.com> | 2020-11-04 10:36:21 +0100 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-11-11 04:06:05 +0000 |
commit | f1fdbfc5bdb74adbe65c8c0eef30b45c426cc323 (patch) | |
tree | 1aab1816f77f8858aff9e60a09afd43ac7583eee /ext/hls/m3u8.c | |
parent | 3a554f6d6239d63b495e0c40bf0f43fa1b3416e8 (diff) | |
download | gstreamer-plugins-bad-f1fdbfc5bdb74adbe65c8c0eef30b45c426cc323.tar.gz |
m3u8: Make a debug function usable elsewhere
The rest of the code might want to use this
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1757>
Diffstat (limited to 'ext/hls/m3u8.c')
-rw-r--r-- | ext/hls/m3u8.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/hls/m3u8.c b/ext/hls/m3u8.c index 679e28876..7f24226ce 100644 --- a/ext/hls/m3u8.c +++ b/ext/hls/m3u8.c @@ -1300,9 +1300,9 @@ gst_m3u8_get_hls_media_type_from_string (const gchar * type_name) return GST_HLS_MEDIA_TYPE_INVALID; } -#define GST_HLS_MEDIA_TYPE_NAME(mtype) gst_m3u8_hls_media_type_get_nick(mtype) -static inline const gchar * -gst_m3u8_hls_media_type_get_nick (GstHLSMediaType mtype) +#define GST_HLS_MEDIA_TYPE_NAME(mtype) gst_hls_media_type_get_name(mtype) +const gchar * +gst_hls_media_type_get_name (GstHLSMediaType mtype) { static const gchar *nicks[GST_HLS_N_MEDIA_TYPES] = { "audio", "video", "subtitle", "closed-captions" |