mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-05 15:08:48 +00:00
adaptivedemux2: Only set DISCONT on beginning of fragments
This avoids accidentally setting it in the middle of a fragment, which could cause havoc in demuxer/parsers Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6961>
This commit is contained in:
parent
59582e2ffe
commit
726f2d8dc0
1 changed files with 6 additions and 6 deletions
|
@ -648,15 +648,15 @@ gst_adaptive_demux2_stream_push_buffer (GstAdaptiveDemux2Stream * stream,
|
|||
if (demux->have_group_id)
|
||||
gst_event_set_group_id (stream_start, demux->group_id);
|
||||
}
|
||||
stream->first_fragment_buffer = FALSE;
|
||||
|
||||
if (stream->discont) {
|
||||
discont = TRUE;
|
||||
stream->discont = FALSE;
|
||||
}
|
||||
} else {
|
||||
GST_BUFFER_PTS (buffer) = GST_CLOCK_TIME_NONE;
|
||||
}
|
||||
stream->first_fragment_buffer = FALSE;
|
||||
|
||||
if (stream->discont) {
|
||||
discont = TRUE;
|
||||
stream->discont = FALSE;
|
||||
}
|
||||
|
||||
if (discont) {
|
||||
GST_DEBUG_OBJECT (stream, "Marking fragment as discontinuous");
|
||||
|
|
Loading…
Reference in a new issue