[vlc-devel] [PATCH] playlist: Set the playlist input thread before triggering a callback
Jonas Lundqvist
jonas at gannon.se
Thu Feb 19 14:39:06 CET 2015
Close #13972
---
src/playlist/thread.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/playlist/thread.c b/src/playlist/thread.c
index b865af8..12a452d 100644
--- a/src/playlist/thread.c
+++ b/src/playlist/thread.c
@@ -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;
}
--
2.1.4
More information about the vlc-devel
mailing list