]> git.sesse.net Git - vlc/blobdiff - src/playlist/thread.c
playlist: small race between vlc_object_alive and vlc_cond_signal
[vlc] / src / playlist / thread.c
index 8aaf782cb3ef22fe8699e6eb3a85cc24384d847b..9d42c3fedb774bc6a6612f8f94e765d2efba1071 100644 (file)
@@ -83,8 +83,8 @@ void playlist_Deactivate( playlist_t *p_playlist )
 
     msg_Dbg( p_playlist, "Deactivate" );
 
-    vlc_object_kill( p_playlist );
     PL_LOCK;
+    vlc_object_kill( p_playlist );
     vlc_cond_signal( &p_sys->signal );
     PL_UNLOCK;