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

Steve Lhomme robux4 at ycbcr.xyz
Mon Nov 4 09:24:05 CET 2019


On 2019-10-30 15:56, Thomas Guillem wrote:
> ---
>   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 )

Here you include VLC_TICK_INVALID, is that intended ?

> +        time = VLC_TICK_0;
>       if( demux_Control( p_demux, DEMUX_SET_TIME, time, !fastseek ) )
>           goto set_position_fallback;
>   
> -- 
> 2.20.1
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
> 


More information about the vlc-devel mailing list