]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/mosaic.h
give the opportunity to play synchronously
[vlc] / modules / video_filter / mosaic.h
index 49099a4d452699eefd77b3eee7ce142d01368717..45f5b4c3a7bc0eabf216ae390388c1814c49ef54 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * mosaic.h:
  *****************************************************************************
- * Copyright (C) 2004-2005 the VideoLAN team
+ * Copyright (C) 2004-2008 the VideoLAN team
  * $Id$
  *
  * Authors: Antoine Cellerier <dionoea@videolan.org>
@@ -40,19 +40,16 @@ typedef struct bridge_t
 #define GetBridge(a) __GetBridge( VLC_OBJECT(a) )
 static bridge_t *__GetBridge( vlc_object_t *p_object )
 {
-    libvlc_global_data_t *p_libvlc_global = p_object->p_libvlc_global;
-    bridge_t *p_bridge;
+    vlc_object_t *p_libvlc = VLC_OBJECT( p_object->p_libvlc );
     vlc_value_t val;
 
-    if( var_Get( p_libvlc_global, "mosaic-struct", &val ) != VLC_SUCCESS )
+    if( var_Get( p_libvlc, "mosaic-struct", &val ) != VLC_SUCCESS )
     {
-        p_bridge = NULL;
+        return NULL;
     }
     else
     {
-        p_bridge = val.p_address;
+        return val.p_address;
     }
-
-    return p_bridge;
 }