aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/player_thread.c')
-rw-r--r--src/player_thread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/player_thread.c b/src/player_thread.c
index 593788caf..ac0b0579e 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -313,6 +313,8 @@ player_open_output(struct player *player)
pc->state = PLAYER_STATE_PLAY;
player_unlock(pc);
+ idle_add(IDLE_PLAYER);
+
return true;
} else {
player->output_open = false;
@@ -375,6 +377,8 @@ player_check_decoder_startup(struct player *player)
pc->audio_format = dc->in_audio_format;
player_unlock(pc);
+ idle_add(IDLE_PLAYER);
+
player->play_audio_format = dc->out_audio_format;
player->decoder_starting = false;