From a717f3bb306a96e04a1ef0993a4f379d307ffa49 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Sun, 1 Jun 2008 00:19:11 +0200 Subject: [PATCH] libvlccore: Don't do vout destruction before destroying playlist. --- src/libvlc.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/libvlc.c b/src/libvlc.c index 720dee937c..90e2a791b2 100644 --- a/src/libvlc.c +++ b/src/libvlc.c @@ -938,15 +938,6 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc ) vlc_object_release( p_intf ); /* for vlc_object_find() */ } - /* Free video outputs */ - msg_Dbg( p_libvlc, "removing all video outputs" ); - while( (p_vout = vlc_object_find( p_libvlc, VLC_OBJECT_VOUT, FIND_CHILD )) ) - { - vlc_object_detach( p_vout ); - vlc_object_release( p_vout ); - vout_Destroy( p_vout ); - } - #ifdef ENABLE_SOUT playlist_t * p_playlist; sout_instance_t * p_sout; @@ -981,6 +972,15 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc ) msg_Dbg( p_libvlc, "removing interaction" ); vlc_object_release( priv->p_interaction ); + /* Free video outputs */ + msg_Dbg( p_libvlc, "removing all video outputs" ); + while( (p_vout = vlc_object_find( p_libvlc, VLC_OBJECT_VOUT, FIND_CHILD )) ) + { + vlc_object_detach( p_vout ); + vlc_object_release( p_vout ); + vout_Destroy( p_vout ); + } + stats_TimersDumpAll( p_libvlc ); stats_TimersCleanAll( p_libvlc ); -- 2.39.2