[vlc-devel] [PATCH] negative stop-time offsets from the end

Jean-Baptiste Kempf jb at videolan.org
Fri Mar 20 15:41:58 CET 2015


On 19 Mar, Aleksandr Pasechnik wrote :
> ---
>  modules/gui/macosx/misc.m     |  2 +-
>  modules/gui/macosx/open.m     |  2 +-
>  modules/gui/macosx/playlist.m |  2 +-
>  modules/gui/macosx/wizard.m   |  2 +-

No, this should be split.

> diff --git a/src/input/input.c b/src/input/input.c
> index 7de30ec..5f5dac2 100644
> --- a/src/input/input.c
> +++ b/src/input/input.c
> @@ -900,6 +900,17 @@ static void StartTitle( input_thread_t * p_input )
>          msg_Warn( p_input, "invalid run-time ignored" );
>          p_input->p->i_run = 0;
>      }
> +    if( p_input->p->i_stop < 0 )
> +    {
> +        mtime_t duration = input_item_GetDuration( p_input->p->p_item );

You _need_ to check the return of this function.


-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list