mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-09 07:52:36 +00:00
matroskademux: Read buffer timestamp *after* actually setting it
https://bugzilla.gnome.org/show_bug.cgi?id=756809
This commit is contained in:
parent
ae3b903019
commit
cbf181f31b
1 changed files with 2 additions and 2 deletions
|
@ -3551,8 +3551,6 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux,
|
||||||
goto next_lace;
|
goto next_lace;
|
||||||
}
|
}
|
||||||
|
|
||||||
buffer_timestamp = gst_matroska_track_get_buffer_timestamp (stream, sub);
|
|
||||||
|
|
||||||
if (!stream->dts_only) {
|
if (!stream->dts_only) {
|
||||||
GST_BUFFER_PTS (sub) = lace_time;
|
GST_BUFFER_PTS (sub) = lace_time;
|
||||||
} else {
|
} else {
|
||||||
|
@ -3561,6 +3559,8 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux,
|
||||||
GST_BUFFER_PTS (sub) = lace_time;
|
GST_BUFFER_PTS (sub) = lace_time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buffer_timestamp = gst_matroska_track_get_buffer_timestamp (stream, sub);
|
||||||
|
|
||||||
if (GST_CLOCK_TIME_IS_VALID (lace_time)) {
|
if (GST_CLOCK_TIME_IS_VALID (lace_time)) {
|
||||||
GstClockTime last_stop_end;
|
GstClockTime last_stop_end;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue