]> git.sesse.net Git - vlc/commitdiff
Remove bogus old code in tree dump.
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 31 May 2008 10:42:58 +0000 (13:42 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 31 May 2008 10:42:58 +0000 (13:42 +0300)
src/misc/objects.c

index 1df7b607d486ee8860cf1b0ed5b191e4a9d7ab87..4b2e56d3ef8a4b7243bce1f87bf36c95c5cdaadc 100644 (file)
@@ -1038,25 +1038,9 @@ static int DumpCommand( vlc_object_t *p_this, char const *psz_cmd,
             if( end != newval.psz_string )
                 p_object = vlc_object_get( i_id );
             else
-            {
                 /* try using the object's name to find it */
-                vlc_object_t *p_libvlc = vlc_object_get( 1 );
-                if( p_libvlc )
-                {
-                    /* Look in p_libvlc's children tree */
-                    p_object = vlc_object_find_name( p_libvlc,
-                                                     newval.psz_string,
-                                                     FIND_CHILD );
-                    vlc_object_release( p_libvlc );
-                }
-                if( !p_object )
-                {
-                    /* If it's not in libvlc, look in libvlc_global (== p_this) */
-                    p_object = vlc_object_find_name( p_this,
-                                                     newval.psz_string,
-                                                     FIND_CHILD );
-                }
-            }
+                p_object = vlc_object_find_name( p_this, newval.psz_string,
+                                                 FIND_ANYWHERE );
 
             if( !p_object )
             {