From 9336077057dc7a19cb56a1db9d43be9cc3cd298f Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Mon, 19 Jan 2015 08:36:42 -0300 Subject: [PATCH] adaptivedemux: fix multi-period playback If we say it is the first segment after a new period it will resync the segment.start value and all buffers will be late for the new period we are trying to play. Otherwise we want to keep the segment.start with the previous value to allow the running time to smoothly increase --- gst-libs/gst/adaptivedemux/gstadaptivedemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c index f9a24c26ff..2141ede061 100644 --- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c +++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c @@ -2387,7 +2387,7 @@ gst_adaptive_demux_advance_period (GstAdaptiveDemux * demux) GST_DEBUG_OBJECT (demux, "Advancing to next period"); klass->advance_period (demux); - gst_adaptive_demux_expose_streams (demux, TRUE); + gst_adaptive_demux_expose_streams (demux, FALSE); gst_adaptive_demux_start_tasks (demux); }