mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
matroskademux: fix stuttering A/V
Someone got had by implicit promotion to unsigned in ops with a signed and an unsigned value. https://bugzilla.gnome.org/show_bug.cgi?id=659153
This commit is contained in:
parent
352bab2ef7
commit
26ae233035
1 changed files with 1 additions and 1 deletions
|
@ -3395,7 +3395,7 @@ gst_matroska_demux_parse_blockgroup_or_simpleblock (GstMatroskaDemux * demux,
|
|||
* otherwise if these go back and forth downstream (sinks) increase
|
||||
* accumulated time and running_time */
|
||||
diff = GST_CLOCK_DIFF (demux->last_stop_end, lace_time);
|
||||
if (diff > demux->max_gap_time
|
||||
if (diff > 0 && diff > demux->max_gap_time
|
||||
&& lace_time > demux->common.segment.start
|
||||
&& (!GST_CLOCK_TIME_IS_VALID (demux->common.segment.stop)
|
||||
|| lace_time < demux->common.segment.stop)) {
|
||||
|
|
Loading…
Reference in a new issue