mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 03:00:35 +00:00
matroskademux: update stream->pos when sending buffers so that gap events are not sent unnecessarily
https://bugzilla.gnome.org/show_bug.cgi?id=708505
This commit is contained in:
parent
950dd1b068
commit
a1a493dae4
1 changed files with 6 additions and 0 deletions
|
@ -3753,6 +3753,12 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux,
|
|||
g_assert (stream->alignment <= G_MEM_ALIGN);
|
||||
sub = gst_matroska_demux_align_buffer (demux, sub, stream->alignment);
|
||||
|
||||
if (GST_BUFFER_PTS_IS_VALID (sub)) {
|
||||
stream->pos = GST_BUFFER_PTS (sub);
|
||||
if (GST_BUFFER_DURATION_IS_VALID (sub))
|
||||
stream->pos += GST_BUFFER_DURATION (sub);
|
||||
}
|
||||
|
||||
ret = gst_pad_push (stream->pad, sub);
|
||||
|
||||
if (demux->common.segment.rate < 0) {
|
||||
|
|
Loading…
Reference in a new issue