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

Thomas Guillem thomas at gllm.fr
Mon Nov 4 10:22:42 CET 2019



On Mon, Nov 4, 2019, at 09:24, Steve Lhomme wrote:
> 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 ?

Indeed, it should be

if( time <= VLC_TICK_INVALID )
 time = VLC_TICK_0;


> 
> > +        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
> > 
> _______________________________________________
> 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