From: Sebastian Dröge Date: Tue, 20 Oct 2015 12:28:10 +0000 (+0300) Subject: matroskademux: Read buffer timestamp *after* actually setting it X-Git-Tag: 1.19.3~509^2~3171 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cbf181f31b92af49e49340806faaa53e1f0096eb;p=platform%2Fupstream%2Fgstreamer.git matroskademux: Read buffer timestamp *after* actually setting it https://bugzilla.gnome.org/show_bug.cgi?id=756809 --- diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index 6612107b5e..5e3ba2f48c 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -3551,8 +3551,6 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux, goto next_lace; } - buffer_timestamp = gst_matroska_track_get_buffer_timestamp (stream, sub); - if (!stream->dts_only) { GST_BUFFER_PTS (sub) = lace_time; } else { @@ -3561,6 +3559,8 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux, GST_BUFFER_PTS (sub) = lace_time; } + buffer_timestamp = gst_matroska_track_get_buffer_timestamp (stream, sub); + if (GST_CLOCK_TIME_IS_VALID (lace_time)) { GstClockTime last_stop_end;