]> git.sesse.net Git - vlc/commitdiff
Mosaic: don't reinvent GetAddress
authorRafaël Carré <funman@videolan.org>
Wed, 19 Feb 2014 19:16:35 +0000 (20:16 +0100)
committerRafaël Carré <funman@videolan.org>
Wed, 19 Feb 2014 19:16:35 +0000 (20:16 +0100)
modules/video_filter/mosaic.h

index 638f0727065234a63590ec80a8aaf525e314c5cf..c5888bcb4ce0538c21f914740a1e630c8e4bd48f 100644 (file)
@@ -43,17 +43,6 @@ typedef struct bridge_t
 
 static bridge_t *GetBridge( vlc_object_t *p_object )
 {
-    vlc_object_t *p_libvlc = VLC_OBJECT( p_object->p_libvlc );
-    vlc_value_t val;
-
-    if( var_Get( p_libvlc, "mosaic-struct", &val ) != VLC_SUCCESS )
-    {
-        return NULL;
-    }
-    else
-    {
-        return val.p_address;
-    }
+    return var_GetAddress(VLC_OBJECT(p_object->p_libvlc), "mosaic-struct");
 }
 #define GetBridge(a) GetBridge( VLC_OBJECT(a) )
-