]> git.sesse.net Git - vlc/commitdiff
variables: don't use p_liblvc when we ARE p_libvlc
authorDerk-Jan Hartman <hartman@videolan.org>
Sat, 20 Sep 2008 17:57:09 +0000 (19:57 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Sat, 20 Sep 2008 17:57:38 +0000 (19:57 +0200)
src/misc/variables.c

index e70babebb72eb70fe0967f7d519d4adbd4baba32..6064ca3f80a423f95dda863a7acb1cc892e1ff0e 100644 (file)
@@ -1459,7 +1459,7 @@ static int InheritValue( vlc_object_t *p_this, const char *psz_name,
     int i_var;
     variable_t *p_var;
 
-    if( p_this->p_parent || p_this->p_libvlc )
+    if( p_this->p_parent || ( p_this->p_libvlc && p_this != p_this->p_libvlc ) )
     {
         vlc_object_internals_t *p_priv;