From 031c6028192ea228892e105e94b1c370256b0d3c Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Wed, 4 Jun 2008 21:16:29 +0300 Subject: [PATCH] Playlist takes care of sout-keep, NOT libvlc! Fixes a bunch of crashes at exit. --- src/libvlc.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/libvlc.c b/src/libvlc.c index 5b2c7bc87f..e06a719722 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 ) { -- 2.39.2