[player] Fix commit 3e9f8ef, input_resume() must be non-blocking (possibly issue #773)

This commit is contained in:
ejurgensen
2019-07-14 00:02:50 +02:00
parent 2f3ec36c6a
commit 5307c6d94b
3 changed files with 36 additions and 17 deletions

View File

@@ -649,6 +649,9 @@ source_restart(void)
DPRINTF(E_DBG, L_PLAYER, "Restarting track: '%s' (id=%d, pos=%d)\n", pb_session.playing_now->path, pb_session.playing_now->item_id, pb_session.playing_now->pos_ms);
// Must be non-blocking, because otherwise we get a deadlock via the input
// thread making a sync call to player_playback_start() -> pb_resume() ->
// source_restart() -> input_resume()
input_resume(pb_session.playing_now->item_id, pb_session.playing_now->pos_ms);
return 0;