]> git.sesse.net Git - vlc/commitdiff
playlist: Set the playlist input thread before triggering a callback
authorJonas Lundqvist <jonas@gannon.se>
Thu, 19 Feb 2015 12:39:06 +0000 (12:39 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 19 Feb 2015 18:17:49 +0000 (19:17 +0100)
Close #13972

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/playlist/thread.c

index b865af878922c8dab174af76be2a7ed259ff1d35..12a452d67cf247e243b78baeadc0a488efe40687 100644 (file)
@@ -235,10 +235,13 @@ static bool PlayItem( playlist_t *p_playlist, playlist_item_t *p_item )
     }
     free( psz_arturl );
 
+    PL_LOCK;
+    p_sys->p_input = p_input_thread;
+    PL_UNLOCK;
+
     var_TriggerCallback( p_playlist, "activity" );
 
     PL_LOCK;
-    p_sys->p_input = p_input_thread;
     return p_input_thread != NULL;
 }