]> git.sesse.net Git - vlc/commitdiff
* src/libvlc.c, src/playlist/services_discovery.c: fixed --services-discovery and...
authorGildas Bazin <gbazin@videolan.org>
Thu, 12 May 2005 12:18:38 +0000 (12:18 +0000)
committerGildas Bazin <gbazin@videolan.org>
Thu, 12 May 2005 12:18:38 +0000 (12:18 +0000)
src/libvlc.c
src/playlist/services_discovery.c

index 82ce78b104378a4b807f2ca3dc0b92b887efbdde..1840db08db98d12b7b0704f11a4af62daa3d5e0d 100644 (file)
@@ -669,7 +669,7 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
     {
         psz_modules = (char *)realloc( psz_modules, strlen( psz_modules ) +
                                                     strlen( psz_control ) + 1 );
-        sprintf( psz_modules, "%s,%s", psz_modules, psz_control );
+        sprintf( psz_modules, "%s:%s", psz_modules, psz_control );
     }
     else if( psz_control && *psz_control )
     {
@@ -682,7 +682,7 @@ int VLC_Init( int i_object, int i_argc, char *ppsz_argv[] )
     {
         char *psz_module, *psz_temp;
         psz_module = psz_parser;
-        psz_parser = strchr( psz_module, ',' );
+        psz_parser = strchr( psz_module, ':' );
         if ( psz_parser )
         {
             *psz_parser = '\0';
index c4d8d890449e69a2f9f0f98860d5b01b3c129d73..109b7278892c5aac54d3291c9e481f7c7bf86891 100644 (file)
@@ -153,12 +153,12 @@ int playlist_AddSDModules( playlist_t *p_playlist, char *psz_modules )
 
         while( psz_parser && *psz_parser )
         {
-            while( *psz_parser == ' ' || *psz_parser == ',' )
+            while( *psz_parser == ' ' || *psz_parser == ':' )
             {
                 psz_parser++;
             }
 
-            if( (psz_next = strchr( psz_parser, ',' ) ) )
+            if( (psz_next = strchr( psz_parser, ':' ) ) )
             {
                 *psz_next++ = '\0';
             }