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

Victorien Le Couviour--Tuffet victorien.lecouviour.tuffet at gmail.com
Tue Nov 27 13:28:56 CET 2018


The playlist needs to be created before spawning the default system
interface since it might use it (to setup playlist / player listeners
for instance).
---
 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
      */
-- 
2.19.1



More information about the vlc-devel mailing list