[vlc-devel] commit: InheritValue: fix type given to var_GetChecked() ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue Dec 29 22:30:21 CET 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Dec 29 23:27:43 2009 +0200| [69258670bd54666f2aeb12cb1700c76694507199] | committer: Rémi Denis-Courmont
InheritValue: fix type given to var_GetChecked()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=69258670bd54666f2aeb12cb1700c76694507199
---
src/misc/variables.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/misc/variables.c b/src/misc/variables.c
index d1123fd..c15a751 100644
--- a/src/misc/variables.c
+++ b/src/misc/variables.c
@@ -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;
More information about the vlc-devel
mailing list