player: added some more assertions
Assertions on pc.command and pc.next_song.
This commit is contained in:
@@ -57,6 +57,8 @@ pc_song_deleted(const struct song *song)
|
||||
|
||||
static void player_command(enum player_command cmd)
|
||||
{
|
||||
assert(pc.command == PLAYER_COMMAND_NONE);
|
||||
|
||||
pc.command = cmd;
|
||||
while (pc.command != PLAYER_COMMAND_NONE) {
|
||||
notify_signal(&pc.notify);
|
||||
|
||||
Reference in New Issue
Block a user