Commit a6b259b7 authored by Jonas Lundqvist's avatar Jonas Lundqvist Committed by Jean-Baptiste Kempf

playlist: Set the playlist input thread before triggering a callback

Close #13972
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1ae0d477
...@@ -235,10 +235,13 @@ static bool PlayItem( playlist_t *p_playlist, playlist_item_t *p_item ) ...@@ -235,10 +235,13 @@ static bool PlayItem( playlist_t *p_playlist, playlist_item_t *p_item )
} }
free( psz_arturl ); free( psz_arturl );
PL_LOCK;
p_sys->p_input = p_input_thread;
PL_UNLOCK;
var_TriggerCallback( p_playlist, "activity" ); var_TriggerCallback( p_playlist, "activity" );
PL_LOCK; PL_LOCK;
p_sys->p_input = p_input_thread;
return p_input_thread != NULL; return p_input_thread != NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment