Commit 3008c478 authored by Rafaël Carré's avatar Rafaël Carré

Destroy the playlist AFTER looking for a sout attached to it

parent 8d6c2121
...@@ -937,10 +937,6 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc ) ...@@ -937,10 +937,6 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
p_intf = NULL; p_intf = NULL;
} }
/* Free playlist */
msg_Dbg( p_libvlc, "removing playlist" );
vlc_object_release( priv->p_playlist );
/* Free video outputs */ /* Free video outputs */
msg_Dbg( p_libvlc, "removing all video outputs" ); msg_Dbg( p_libvlc, "removing all video outputs" );
while( (p_vout = vlc_object_find( p_libvlc, VLC_OBJECT_VOUT, FIND_CHILD )) ) while( (p_vout = vlc_object_find( p_libvlc, VLC_OBJECT_VOUT, FIND_CHILD )) )
...@@ -985,6 +981,10 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc ) ...@@ -985,6 +981,10 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
} }
#endif #endif
/* Free playlist */
msg_Dbg( p_libvlc, "removing playlist" );
vlc_object_release( priv->p_playlist );
/* Free interaction */ /* Free interaction */
msg_Dbg( p_libvlc, "removing interaction" ); msg_Dbg( p_libvlc, "removing interaction" );
vlc_object_release( priv->p_interaction ); vlc_object_release( priv->p_interaction );
......
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