]> git.sesse.net Git - vlc/commitdiff
Revert "libvlc: Wait for input end."
authorPierre d'Herbemont <pdherbemont@free.fr>
Sun, 30 Mar 2008 00:36:26 +0000 (01:36 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Sun, 30 Mar 2008 00:36:26 +0000 (01:36 +0100)
This reverts commit 1dfd50c2ad27eba42ab4d39b84f9d04e6fc4d259.
This is no needed of such a hack if there is no circular dependency between input and vout and if the input are properly released.

src/libvlc-common.c

index c3e9f01c36b9d894ed9add2587d099ada64b3a5d..7df76f766c25bbfa0c2fb0bc589debe96e95bbea 100644 (file)
@@ -931,7 +931,6 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
 {
     intf_thread_t      * p_intf = NULL;
     vout_thread_t      * p_vout = NULL;
-    input_thread_t     * p_input = NULL;
     aout_instance_t    * p_aout = NULL;
     announce_handler_t * p_announce = NULL;
 
@@ -950,15 +949,6 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
     msg_Dbg( p_libvlc, "removing playlist" );
     playlist_ThreadDestroy( p_libvlc->p_playlist );
 
-    /* Free input */
-    msg_Dbg( p_libvlc, "waiting all input end" );
-    while( (p_input = vlc_object_find( p_libvlc, VLC_OBJECT_INPUT, FIND_CHILD )) )
-    {
-        vlc_object_kill( p_input );
-        vlc_thread_join( p_input );
-        vlc_object_release( p_input );
-    }
-
     /* Free video outputs */
     msg_Dbg( p_libvlc, "removing all video outputs" );
     while( (p_vout = vlc_object_find( p_libvlc, VLC_OBJECT_VOUT, FIND_CHILD )) )