]> git.sesse.net Git - vlc/commitdiff
Simplify.
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 19 Jan 2008 12:35:35 +0000 (12:35 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 19 Jan 2008 12:35:35 +0000 (12:35 +0000)
modules/video_filter/mosaic.h

index f17d28d4ae09038f1546e4e5ffd774748c97b94d..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>
@@ -41,18 +41,15 @@ typedef struct bridge_t
 static bridge_t *__GetBridge( vlc_object_t *p_object )
 {
     vlc_object_t *p_libvlc = VLC_OBJECT( p_object->p_libvlc );
-    bridge_t *p_bridge;
     vlc_value_t val;
 
     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;
 }