Commit e70bce6c authored by Antoine Cellerier's avatar Antoine Cellerier

Simplify.

parent 61fc0c2f
/***************************************************************************** /*****************************************************************************
* mosaic.h: * mosaic.h:
***************************************************************************** *****************************************************************************
* Copyright (C) 2004-2005 the VideoLAN team * Copyright (C) 2004-2008 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Antoine Cellerier <dionoea@videolan.org> * Authors: Antoine Cellerier <dionoea@videolan.org>
...@@ -41,18 +41,15 @@ typedef struct bridge_t ...@@ -41,18 +41,15 @@ typedef struct bridge_t
static bridge_t *__GetBridge( vlc_object_t *p_object ) static bridge_t *__GetBridge( vlc_object_t *p_object )
{ {
vlc_object_t *p_libvlc = VLC_OBJECT( p_object->p_libvlc ); vlc_object_t *p_libvlc = VLC_OBJECT( p_object->p_libvlc );
bridge_t *p_bridge;
vlc_value_t val; vlc_value_t val;
if( var_Get( p_libvlc, "mosaic-struct", &val ) != VLC_SUCCESS ) if( var_Get( p_libvlc, "mosaic-struct", &val ) != VLC_SUCCESS )
{ {
p_bridge = NULL; return NULL;
} }
else else
{ {
p_bridge = val.p_address; return val.p_address;
} }
return p_bridge;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment