[vlc-devel] [PATCH 4/6] libvlc: spawn system specific intf after playlist

Rémi Denis-Courmont remi at remlab.net
Tue Nov 27 19:40:28 CET 2018


Le tiistaina 27. marraskuuta 2018, 14.28.56 EET Victorien Le Couviour--Tuffet 
a écrit :
> The playlist needs to be created before spawning the default system
> interface since it might use it (to setup playlist / player listeners
> for instance).

No. The D-Bus code must be evaluated before the playlist is populated.


> ---
>  src/libvlc.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/src/libvlc.c b/src/libvlc.c
> index 8061171cae..cf35bcfed3 100644
> --- a/src/libvlc.c
> +++ b/src/libvlc.c
> @@ -322,9 +322,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int
> i_argc, var_Create( p_libvlc, "app-version", VLC_VAR_STRING );
>      var_SetString( p_libvlc, "app-version", PACKAGE_VERSION );
> 
> -    /* System specific configuration */
> -    system_Configure( p_libvlc, i_argc - vlc_optind, ppsz_argv + vlc_optind
> ); -
>  #ifdef ENABLE_VLM
>      /* Initialize VLM if vlm-conf is specified */
>      psz_parser = var_InheritString( p_libvlc, "vlm-conf" );
> @@ -343,6 +340,9 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int
> i_argc,
> 
>      PlaylistConfigureFromVariables(priv->main_playlist,
> VLC_OBJECT(p_libvlc));
> 
> +    /* System specific configuration */
> +    system_Configure( p_libvlc, i_argc - vlc_optind, ppsz_argv + vlc_optind
> ); +
>      /*
>       * Load background interfaces
>       */


-- 
雷米‧德尼-库尔蒙
http://www.remlab.net/





More information about the vlc-devel mailing list