mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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.
This commit is contained in:
parent
8aaea3931c
commit
9ebbce381a
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue