Destroy the playlist AFTER looking for a sout attached to it
authorRafaël Carré <funman@videolan.org>
Mon, 19 May 2008 11:40:56 +0000 (13:40 +0200)
committerRafaël Carré <funman@videolan.org>
Mon, 19 May 2008 11:41:25 +0000 (13:41 +0200)
src/libvlc-common.c

index 26d58a8..76c241d 100644 (file)
@@ -937,10 +937,6 @@ int libvlc_InternalCleanup( libvlc_int_t *p_libvlc )
         p_intf = NULL;
     }
 
-    /* Free playlist */
-    msg_Dbg( p_libvlc, "removing playlist" );
-    vlc_object_release( priv->p_playlist );
-
     /* Free video outputs */
     msg_Dbg( p_libvlc, "removing all video outputs" );
     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 )
     }
 #endif
 
+    /* Free playlist */
+    msg_Dbg( p_libvlc, "removing playlist" );
+    vlc_object_release( priv->p_playlist );
+
     /* Free interaction */
     msg_Dbg( p_libvlc, "removing interaction" );
     vlc_object_release( priv->p_interaction );