vlc_object_release( p_obj );
break;
}
+ msg_Dbg( p_playlist, "garbage collector destroying 1 sout" );
+ vlc_object_detach( p_obj );
vlc_object_release( p_obj );
sout_DeleteInstance( (sout_instance_t*)p_obj );
}
/* Destroy input */
input_DestroyThread( p_input );
- /* Unlink current input
- * (_after_ input_DestroyThread for vout garbage collector) */
- vlc_object_detach( p_input );
-
- /* Destroy object */
- vlc_object_destroy( p_input );
-
PL_LOCK;
p_playlist->gc_date = mdate();
else if( p_playlist->p_input->b_die )
{
PL_DEBUG( "dying input" );
+ PL_UNLOCK;
msleep( 25000 ); // 25 ms
+ PL_LOCK;
goto check_input;
}
/* This input has finished, ask it to die ! */
/* Destroy input */
input_DestroyThread( p_input );
- /* Unlink current input (_after_ input_DestroyThread for vout
- * garbage collector)*/
- vlc_object_detach( p_input );
-
- /* Destroy object */
- vlc_object_destroy( p_input );
continue;
}
else if( p_playlist->p_input->b_die )
while( ( p_obj = vlc_object_find( p_playlist,
VLC_OBJECT_SOUT, FIND_CHILD ) ) )
{
+ vlc_object_detach( p_obj );
vlc_object_release( p_obj );
sout_DeleteInstance( (sout_instance_t*)p_obj );
}