matroskademux: Read buffer timestamp *after* actually setting it
authorSebastian Dröge <sebastian@centricular.com>
Tue, 20 Oct 2015 12:28:10 +0000 (15:28 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 27 Oct 2015 16:01:32 +0000 (18:01 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=756809

gst/matroska/matroska-demux.c

index 6612107b5efd3cd4dfc3616c06e8fb20d79b7f6c..5e3ba2f48c81b4685112d2612c1cad05621094bb 100644 (file)
@@ -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;