[vlc-commits] libvlc: move variable in ifdef

Alexandre Janniaux git at videolan.org
Wed Apr 29 20:19:27 CEST 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Tue Apr 28 11:13:05 2020 +0200| [4d87172d28a8fd1144f56f494affc1d05afd6b51] | committer: Alexandre Janniaux

libvlc: move variable in ifdef

psz_parser is only used when VLM is enabled.

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

 src/libvlc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/libvlc.c b/src/libvlc.c
index 377d52b030..789a320300 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -130,7 +130,6 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
                          const char *ppsz_argv[] )
 {
     libvlc_priv_t *priv = libvlc_priv (p_libvlc);
-    char *       psz_parser = NULL;
     char        *psz_val;
     int          i_ret = VLC_EGENERIC;
 
@@ -264,7 +263,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
 
 #ifdef ENABLE_VLM
     /* Initialize VLM if vlm-conf is specified */
-    psz_parser = var_InheritString( p_libvlc, "vlm-conf" );
+    char *psz_parser = var_InheritString( p_libvlc, "vlm-conf" );
     if( psz_parser )
     {
         priv->p_vlm = vlm_New( p_libvlc, psz_parser );



More information about the vlc-commits mailing list