[vlc-devel] commit: Remove bogus old code in tree dump. ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat May 31 12:47:13 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat May 31 13:42:58 2008 +0300| [1993aa3c29ccd1daf22cd5925e218b34afa52a1c]
Remove bogus old code in tree dump.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1993aa3c29ccd1daf22cd5925e218b34afa52a1c
---
src/misc/objects.c | 20 ++------------------
1 files changed, 2 insertions(+), 18 deletions(-)
diff --git a/src/misc/objects.c b/src/misc/objects.c
index 1df7b60..4b2e56d 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -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 )
{
More information about the vlc-devel
mailing list