mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
qtmux: avoid warning if both ts are equal
This commit is contained in:
parent
80245e2a70
commit
0cff483bd7
1 changed files with 1 additions and 1 deletions
|
@ -2112,7 +2112,7 @@ static void
|
|||
check_and_subtract_ts (GstQTMux * qtmux, GstClockTime * ts_a, GstClockTime ts_b)
|
||||
{
|
||||
if (G_LIKELY (GST_CLOCK_TIME_IS_VALID (*ts_a))) {
|
||||
if (G_LIKELY (*ts_a > ts_b)) {
|
||||
if (G_LIKELY (*ts_a >= ts_b)) {
|
||||
*ts_a -= ts_b;
|
||||
} else {
|
||||
*ts_a = 0;
|
||||
|
|
Loading…
Reference in a new issue