Commit 45e43037 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

variables: Inherit path is now parent->libvlc->saved config

parent 63b05039
...@@ -1456,11 +1456,12 @@ static int InheritValue( vlc_object_t *p_this, const char *psz_name, ...@@ -1456,11 +1456,12 @@ static int InheritValue( vlc_object_t *p_this, const char *psz_name,
{ {
int i_var; int i_var;
variable_t *p_var; variable_t *p_var;
vlc_object_internals_t *p_priv;
/* No need to take the structure lock, /* No need to take the structure lock,
* we are only looking for our parents */ * we are only looking for our parents */
if( !p_this->p_parent ) if( !p_this->p_parent && !p_this->p_libvlc )
{ {
switch( i_type & VLC_VAR_TYPE ) switch( i_type & VLC_VAR_TYPE )
{ {
...@@ -1518,7 +1519,10 @@ static int InheritValue( vlc_object_t *p_this, const char *psz_name, ...@@ -1518,7 +1519,10 @@ static int InheritValue( vlc_object_t *p_this, const char *psz_name,
return VLC_SUCCESS; return VLC_SUCCESS;
} }
vlc_object_internals_t *p_priv = vlc_internals( p_this->p_parent ); if( !p_this->p_parent )
p_priv = vlc_internals( p_this->p_libvlc );
else
p_priv = vlc_internals( p_this->p_parent );
/* Look for the variable */ /* Look for the variable */
vlc_mutex_lock( &p_priv->var_lock ); vlc_mutex_lock( &p_priv->var_lock );
......
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