aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/player.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/player.c b/src/player.c
index 84fd163fe..ba424d1d5 100644
--- a/src/player.c
+++ b/src/player.c
@@ -61,19 +61,23 @@ void playerPlay(Song * song)
void playerStop(void)
{
+ assert(pc.queueLockState == PLAYER_QUEUE_UNLOCKED);
+
if (pc.state != PLAYER_STATE_STOP)
player_command(PLAYER_COMMAND_STOP);
pc.queueState = PLAYER_QUEUE_BLANK;
- playerQueueUnlock();
}
void playerWait(void)
{
player_command(PLAYER_COMMAND_CLOSE_AUDIO);
+ assert(pc.queueLockState == PLAYER_QUEUE_UNLOCKED);
+
+ player_command(PLAYER_COMMAND_CLOSE_AUDIO);
+
pc.queueState = PLAYER_QUEUE_BLANK;
- playerQueueUnlock();
}
void playerKill(void)