[vlc-devel] commit: libvlc: add SD plugins one by one ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Jan 10 19:46:09 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Jan 10 20:28:51 2009 +0200| [ad671cf41a49e266e0775ea16cc760a6ca62b295] | committer: Rémi Denis-Courmont 

libvlc: add SD plugins one by one

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ad671cf41a49e266e0775ea16cc760a6ca62b295
---

 src/libvlc.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/libvlc.c b/src/libvlc.c
index d6afbc0..c121244 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -830,11 +830,13 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
     playlist_Activate( p_playlist );
     vlc_object_attach( p_playlist, p_libvlc );
 
+    /* Add service discovery modules */
     psz_modules = config_GetPsz( p_playlist, "services-discovery" );
     if( psz_modules && *psz_modules )
     {
-        /* Add service discovery modules */
-        playlist_ServicesDiscoveryAdd( p_playlist, psz_modules );
+        char *p = psz_modules, *m;
+        while( ( m = strsep( &p, " :," ) ) != NULL )
+            playlist_ServicesDiscoveryAdd( p_playlist, m );
     }
     free( psz_modules );
 




More information about the vlc-devel mailing list