]> git.sesse.net Git - vlc/blobdiff - modules/video_output/caca.c
the vout might still run after the playlist termination, so we don't want to use...
[vlc] / modules / video_output / caca.c
index 0a8408c7b3b0fa89dab2c023ab7ade58b8cf6993..888414a9eaa1784566a5f279e637396f9b66e89b 100644 (file)
@@ -371,9 +371,13 @@ static int Manage( vout_thread_t *p_vout )
             break;
         case CACA_EVENT_QUIT:
         {
-            p_playlist = pl_Yield( p_vout );
-            playlist_Stop( p_playlist );
-            vlc_object_release( p_playlist );
+            p_playlist = vlc_object_find( p_vout,
+                                         VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
+            if( p_playlist )
+            {
+                playlist_Stop( p_playlist );
+                vlc_object_release( p_playlist );
+            }
             vlc_object_kill( p_vout->p_libvlc );
             break;
         }