[vlc-devel] [PATCH 3/7] input: use VLC_TICK_0

Thomas Guillem thomas at gllm.fr
Wed Oct 30 15:56:57 CET 2019


---
 src/input/input.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index 120066aca71..747fa276f34 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1853,8 +1853,8 @@ static int SetTime( input_thread_t *p_input, vlc_tick_t time, bool fastseek,
         time += current_time;
     }
 
-    if( time < 0 )
-        time = 0;
+    if( time <= 0 )
+        time = VLC_TICK_0;
     if( demux_Control( p_demux, DEMUX_SET_TIME, time, !fastseek ) )
         goto set_position_fallback;
 
-- 
2.20.1



More information about the vlc-devel mailing list