[vlc-devel] commit: Use ...NonEmpty... for --open ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Dec 10 17:46:43 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Dec 10 18:46:22 2009 +0200| [709be17708bf62399b3e1a3104e8489cef01e8a3] | committer: Rémi Denis-Courmont 

Use ...NonEmpty... for --open

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

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

diff --git a/src/libvlc.c b/src/libvlc.c
index 07937d6..3cef1bf 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -1008,8 +1008,8 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
     /*
      * Get --open argument
      */
-    psz_val = var_CreateGetString( p_libvlc, "open" );
-    if ( psz_val != NULL && *psz_val )
+    psz_val = var_CreateGetNonEmptyString( p_libvlc, "open" );
+    if ( psz_val != NULL )
     {
         playlist_t *p_playlist = pl_Hold( p_libvlc );
         playlist_AddExt( p_playlist, psz_val, NULL, PLAYLIST_INSERT, 0,




More information about the vlc-devel mailing list