input: No need to call detach() prior to release() in those cases.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 28 Mar 2008 21:56:11 +0000 (22:56 +0100)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 28 Mar 2008 21:56:11 +0000 (22:56 +0100)
src/input/input.c

index 8442c93..dbe4a66 100644 (file)
@@ -399,7 +399,6 @@ int __input_Read( vlc_object_t *p_parent, input_item_t *p_item,
         {
             input_ChangeState( p_input, ERROR_S );
             msg_Err( p_input, "cannot create input thread" );
-            vlc_object_detach( p_input );
             vlc_object_release( p_input );
             return VLC_EGENERIC;
         }
@@ -576,7 +575,6 @@ static int RunAndDestroy( input_thread_t *p_input )
 
 exit:
     /* Release memory */
-    vlc_object_detach( p_input );
     vlc_object_release( p_input );
     return 0;
 }