[vlc-commits] Mosaic: don't reinvent GetAddress

Rafaël Carré git at videolan.org
Wed Feb 19 20:17:23 CET 2014


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Feb 19 20:16:35 2014 +0100| [91815b7bf43876560700485a1acd735edfacdff7] | committer: Rafaël Carré

Mosaic: don't reinvent GetAddress

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

 modules/video_filter/mosaic.h |   13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/modules/video_filter/mosaic.h b/modules/video_filter/mosaic.h
index 638f072..c5888bc 100644
--- a/modules/video_filter/mosaic.h
+++ b/modules/video_filter/mosaic.h
@@ -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) )
-



More information about the vlc-commits mailing list