Commit 7295d429 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

playlist: move input-current, fix race

See also a6b259b7.
parent 98503a2f
...@@ -221,8 +221,6 @@ static bool PlayItem( playlist_t *p_playlist, playlist_item_t *p_item ) ...@@ -221,8 +221,6 @@ static bool PlayItem( playlist_t *p_playlist, playlist_item_t *p_item )
} }
} }
var_SetAddress( p_playlist, "input-current", p_input_thread );
/* TODO store art policy in playlist private data */ /* TODO store art policy in playlist private data */
char *psz_arturl = input_item_GetArtURL( p_input ); char *psz_arturl = input_item_GetArtURL( p_input );
/* p_input->p_meta should not be null after a successful CreateThread */ /* p_input->p_meta should not be null after a successful CreateThread */
...@@ -240,6 +238,7 @@ static bool PlayItem( playlist_t *p_playlist, playlist_item_t *p_item ) ...@@ -240,6 +238,7 @@ static bool PlayItem( playlist_t *p_playlist, playlist_item_t *p_item )
PL_UNLOCK; PL_UNLOCK;
var_TriggerCallback( p_playlist, "activity" ); var_TriggerCallback( p_playlist, "activity" );
var_SetAddress( p_playlist, "input-current", p_input_thread );
PL_LOCK; PL_LOCK;
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