]> git.sesse.net Git - vlc/commitdiff
fix warning
authorRafaël Carré <funman@videolan.org>
Mon, 28 Jan 2008 15:37:24 +0000 (15:37 +0000)
committerRafaël Carré <funman@videolan.org>
Mon, 28 Jan 2008 15:37:24 +0000 (15:37 +0000)
src/libvlc-common.c

index b110793b301e4a303a3f93299bb3e4bab6ecbcd1..bfe525ab8f002d195d6007a6b0e2011ac7984716 100644 (file)
@@ -98,7 +98,7 @@
  * The evil global variable. We handle it with care, don't worry.
  *****************************************************************************/
 static libvlc_global_data_t   libvlc_global;
-#define p_libvlc_global (&libvlc_global)
+static libvlc_global_data_t *p_libvlc_global = &libvlc_global;
 static libvlc_int_t *    p_static_vlc = NULL;
 static volatile unsigned int i_instances = 0;
 
@@ -139,12 +139,7 @@ libvlc_global_data_t *vlc_global( void )
  *****************************************************************************/
 libvlc_int_t * vlc_current_object( int i_object )
 {
-    if( i_object )
-    {
-         return vlc_object_get( p_libvlc_global, i_object );
-    }
-
-    return p_static_vlc;
+    return i_object ? vlc_object_get( i_object ) : p_static_vlc;
 }