]> git.sesse.net Git - vlc/commitdiff
Playlist takes care of sout-keep, NOT libvlc!
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 4 Jun 2008 18:16:29 +0000 (21:16 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Wed, 4 Jun 2008 18:16:29 +0000 (21:16 +0300)
Fixes a bunch of crashes at exit.

src/libvlc.c

index 5b2c7bc87f3ae73eb0bc16d4267dc106873b8658..e06a7197226337abe014dee7f1775993058e6b2f 100644 (file)
@@ -943,24 +943,6 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
     }
 
 #ifdef ENABLE_SOUT
-    playlist_t         * p_playlist;
-    sout_instance_t    * p_sout;
-
-    p_playlist = vlc_object_find( p_libvlc, VLC_OBJECT_PLAYLIST, FIND_CHILD );
-    if( p_playlist )
-    {
-        p_sout = vlc_object_find( p_playlist, VLC_OBJECT_SOUT, FIND_CHILD );
-        if( p_sout )
-        {
-            msg_Dbg( p_sout, "removing kept stream output" );
-            vlc_object_detach( (vlc_object_t*)p_sout );
-            vlc_object_release( (vlc_object_t*)p_sout );
-            sout_DeleteInstance( p_sout );
-        }
-
-        vlc_object_release( p_playlist );
-    }
-
     /* Destroy VLM if created in libvlc_InternalInit */
     if( priv->p_vlm )
     {