diff --git a/ext/hls/m3u8.c b/ext/hls/m3u8.c index 679e288765..7f24226cec 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" diff --git a/ext/hls/m3u8.h b/ext/hls/m3u8.h index a7af61f1f6..e7b4fe10c4 100644 --- a/ext/hls/m3u8.h +++ b/ext/hls/m3u8.h @@ -176,6 +176,8 @@ GstHLSMedia * gst_hls_media_ref (GstHLSMedia * media); void gst_hls_media_unref (GstHLSMedia * media); +const gchar * gst_hls_media_type_get_name (GstHLSMediaType mtype); + struct _GstHLSVariantStream { gchar *name; /* This will be the "name" of the playlist, the original