[vlc-devel] [PATCH] added start playback in paused mode (#2936)

Jean-Baptiste Kempf jb at videolan.org
Fri Mar 20 16:16:36 CET 2015


On 12 Mar, Aleksandr Pasechnik wrote :
>      {
> +        bool b_start_paused = var_InheritBool( p_input, "start-paused" );
> +        msg_Dbg( p_input, "decided that start-paused is %d", b_start_paused );

You cannot msg at every run.

> +        if( b_start_paused )
> +        {
> +            const mtime_t i_control_date = mdate();
> +            ControlPause( p_input, i_control_date );
> +        }

> +    add_bool( "start-paused", 0, SP_TEXT, SP_LONGTEXT, false )
> +        change_safe()

Safe?

With my kindest regards,

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



More information about the vlc-devel mailing list