Commit 031c6028 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Playlist takes care of sout-keep, NOT libvlc!

Fixes a bunch of crashes at exit.
parent 65892ac8
...@@ -943,24 +943,6 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc ) ...@@ -943,24 +943,6 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
} }
#ifdef ENABLE_SOUT #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 */ /* Destroy VLM if created in libvlc_InternalInit */
if( priv->p_vlm ) if( priv->p_vlm )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment