hlsdemux: reset end_of_playlist attribute when we receive a seek
authorMatthieu Bouron <matthieu.bouron@collabora.com>
Tue, 21 Oct 2014 10:39:14 +0000 (12:39 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 21 Oct 2014 10:55:42 +0000 (12:55 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=738696

ext/hls/gsthlsdemux.c

index 68144c1c28d233bf0fe3682827d70862c6469561..12ea816d3e611654fec1de58e2ef2545ee6cc7f5 100755 (executable)
@@ -482,6 +482,7 @@ gst_hls_demux_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
         demux->discont = TRUE;
         demux->new_playlist = TRUE;
         demux->do_typefind = TRUE;
+        demux->end_of_playlist = FALSE;
 
         gst_hls_demux_change_playlist (demux,
             demux->current_download_rate * demux->bitrate_limit / ABS (rate));
@@ -509,6 +510,7 @@ gst_hls_demux_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
         demux->discont = TRUE;
         demux->new_playlist = TRUE;
         demux->do_typefind = TRUE;
+        demux->end_of_playlist = FALSE;
 
         gst_hls_demux_change_playlist (demux,
             demux->current_download_rate * demux->bitrate_limit);