[vlc-devel] commit: Playlist takes care of sout-keep, NOT libvlc! ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Jun 4 20:16:12 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Wed Jun  4 21:16:29 2008 +0300| [031c6028192ea228892e105e94b1c370256b0d3c]

Playlist takes care of sout-keep, NOT libvlc!

Fixes a bunch of crashes at exit.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=031c6028192ea228892e105e94b1c370256b0d3c
---

 src/libvlc.c |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)

diff --git a/src/libvlc.c b/src/libvlc.c
index 5b2c7bc..e06a719 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -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 )
     {




More information about the vlc-devel mailing list