mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +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/6610>
This commit is contained in:
parent
81c42ee14b
commit
7d49b1cc51
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)
|
if (demux->have_group_id)
|
||||||
gst_event_set_group_id (stream_start, demux->group_id);
|
gst_event_set_group_id (stream_start, demux->group_id);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
GST_BUFFER_PTS (buffer) = GST_CLOCK_TIME_NONE;
|
|
||||||
}
|
|
||||||
stream->first_fragment_buffer = FALSE;
|
stream->first_fragment_buffer = FALSE;
|
||||||
|
|
||||||
if (stream->discont) {
|
if (stream->discont) {
|
||||||
discont = TRUE;
|
discont = TRUE;
|
||||||
stream->discont = FALSE;
|
stream->discont = FALSE;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
GST_BUFFER_PTS (buffer) = GST_CLOCK_TIME_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
if (discont) {
|
if (discont) {
|
||||||
GST_DEBUG_OBJECT (stream, "Marking fragment as discontinuous");
|
GST_DEBUG_OBJECT (stream, "Marking fragment as discontinuous");
|
||||||
|
|
Loading…
Reference in a new issue