[vlc-devel] [PATCH 2/2] es_out: always return the negative delay in EsOutGetTracksDelay
Steve Lhomme
robux4 at ycbcr.xyz
Thu Aug 13 14:10:04 CEST 2020
The value is initialized to 0 and set values lower than its initial value. So
we don't need to compare it to 0.
---
src/input/es_out.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index ef6b1c9b869..7fad533e65d 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2966,7 +2966,7 @@ static vlc_tick_t EsOutGetTracksDelay(es_out_t *out)
tracks_delay = __MIN(tracks_delay, p_sys->i_audio_delay);
if (has_spu)
tracks_delay = __MIN(tracks_delay, p_sys->i_spu_delay);
- return tracks_delay < 0 ? -tracks_delay : 0;
+ return -tracks_delay;
}
/**
--
2.26.2
More information about the vlc-devel
mailing list