]> git.sesse.net Git - vlc/commitdiff
InheritValue: fix type given to var_GetChecked()
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 29 Dec 2009 21:27:43 +0000 (23:27 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 29 Dec 2009 21:27:43 +0000 (23:27 +0200)
src/misc/variables.c

index d1123fd553553025168e944789b70015182921a4..c15a7518f6ce0cba9dea7d2b4c9254bd6b37f2de 100644 (file)
@@ -1403,6 +1403,7 @@ static void CheckValue ( variable_t *p_var, vlc_value_t *p_val )
 static int InheritValue( vlc_object_t *p_this, const char *psz_name,
                          vlc_value_t *p_val, int i_type )
 {
+    i_type &= VLC_VAR_CLASS;
     for( vlc_object_t *obj = p_this; obj != NULL; obj = obj->p_parent )
         if( var_GetChecked( p_this, psz_name, i_type, p_val ) == VLC_SUCCESS )
             return VLC_SUCCESS;