summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2015-02-19 14:34:23 +0100
committerThiago Santos <thiagoss@osg.samsung.com>2015-02-19 12:17:21 -0300
commitb75f64d72ed5f07ab9e105ff6102e89513d9cb30 (patch)
treed908f5e51ab3279bf0c5b7a43ae1e031fdca5744
parent0e809604f5fa091dc1b43cc3daaf25afb8aca629 (diff)
downloadgstreamer-plugins-bad-b75f64d72ed5f07ab9e105ff6102e89513d9cb30.tar.gz
hlssink: reduce playlist's EXT-X-VERSION to 3
We are not using any features greater than the 3rd version, so reduce to what we actually use to make it compatible with more players https://bugzilla.gnome.org/show_bug.cgi?id=744689
-rw-r--r--ext/hls/gsthlssink.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/hls/gsthlssink.c b/ext/hls/gsthlssink.c
index 318455fea..ea337eaa6 100644
--- a/ext/hls/gsthlssink.c
+++ b/ext/hls/gsthlssink.c
@@ -51,6 +51,8 @@ GST_DEBUG_CATEGORY_STATIC (gst_hls_sink_debug);
#define DEFAULT_TARGET_DURATION 15
#define DEFAULT_PLAYLIST_LENGTH 5
+#define GST_M3U8_PLAYLIST_VERSION 3
+
enum
{
PROP_0,
@@ -205,7 +207,9 @@ gst_hls_sink_reset (GstHlsSink * sink)
if (sink->playlist)
gst_m3u8_playlist_free (sink->playlist);
- sink->playlist = gst_m3u8_playlist_new (6, sink->playlist_length, FALSE);
+ sink->playlist =
+ gst_m3u8_playlist_new (GST_M3U8_PLAYLIST_VERSION, sink->playlist_length,
+ FALSE);
}
static gboolean