[vlc-devel] commit: variables: Fix two typos in InheritValue(). (Pierre d'Herbemont )

git version control git at videolan.org
Wed Dec 30 06:06:27 CET 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Wed Dec 30 06:02:42 2009 +0100| [98f51bc5b08527f8ee55a3b08ed732d6f7d0c141] | committer: Pierre d'Herbemont 

variables: Fix two typos in InheritValue().

First one is about starting to inherit from the parent. Shouldn't hurt much.
Second one is about looking to inherit from the right variable. hurt more.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=98f51bc5b08527f8ee55a3b08ed732d6f7d0c141
---

 src/misc/variables.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/misc/variables.c b/src/misc/variables.c
index c15a751..b930544 100644
--- a/src/misc/variables.c
+++ b/src/misc/variables.c
@@ -1404,8 +1404,8 @@ 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 )
+    for( vlc_object_t *obj = p_this->p_parent; obj != NULL; obj = obj->p_parent )
+        if( var_GetChecked( obj, psz_name, i_type, p_val ) == VLC_SUCCESS )
             return VLC_SUCCESS;
 
     /* else take value from config */




More information about the vlc-devel mailing list