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:
Matej Knopp 2013-09-21 00:55:26 +02:00 committed by Thiago Santos
parent 950dd1b068
commit a1a493dae4

View file

@ -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) {