From: Thiago Santos Date: Tue, 20 Jan 2015 17:55:05 +0000 (-0300) Subject: adaptivedemux: do not skip the first fragment X-Git-Tag: 1.19.3~507^2~9528 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ebbce381a7d7c8477387029832f3992f4613feb;p=platform%2Fupstream%2Fgstreamer.git adaptivedemux: do not skip the first fragment Avoid advancing fragment right after downloading the header. If it is the header, by default, don't advance to the next fragment. --- diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c index c541b50..dcf16aa 100644 --- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c +++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c @@ -1287,6 +1287,10 @@ static GstFlowReturn gst_adaptive_demux_stream_finish_fragment_default (GstAdaptiveDemux * demux, GstAdaptiveDemuxStream * stream) { + /* No need to advance, this isn't a real fragment */ + if (G_UNLIKELY (stream->downloading_header || stream->downloading_index)) + return GST_FLOW_OK; + return gst_adaptive_demux_stream_advance_fragment (demux, stream, stream->fragment.duration); }