]> git.sesse.net Git - vlc/commitdiff
* src/input/meta.c: stop the spamming of the meta engine.
authorGildas Bazin <gbazin@videolan.org>
Sat, 7 Oct 2006 23:37:33 +0000 (23:37 +0000)
committerGildas Bazin <gbazin@videolan.org>
Sat, 7 Oct 2006 23:37:33 +0000 (23:37 +0000)
src/input/meta.c

index 8c4bd34995bd4079e5880778901cac6d08c7f9a1..3b8efcba5ec780e3b00da1cb874186bd75765edd 100644 (file)
@@ -67,23 +67,19 @@ int input_MetaFetch( playlist_t *p_playlist, input_item_t *p_item )
 
     p_me = vlc_object_create( p_playlist, VLC_OBJECT_META_ENGINE );
     p_me->i_flags |= OBJECT_FLAGS_NOINTERACT;
+    p_me->i_flags |= OBJECT_FLAGS_QUIET;
     p_me->i_mandatory = i_mandatory;
     p_me->i_optional = i_optional;
 
     p_me->p_item = p_item;
     p_me->p_module = module_Need( p_me, "meta fetcher", 0, VLC_FALSE );
-    vlc_object_attach( p_me, p_playlist );
     if( !p_me->p_module )
     {
-        msg_Dbg( p_playlist, "unable to fetch meta" );
-        vlc_object_detach( p_me );
         vlc_object_destroy( p_me );
         return VLC_EGENERIC;
     }
 
     module_Unneed( p_me, p_me->p_module );
-
-    vlc_object_detach( p_me );
     vlc_object_destroy( p_me );
 
     return VLC_SUCCESS;