player_control: assert that pc.next_song is NULL after seeking

The player thread must reset pc.next_song after seeking, even if that
operation has failed.  This patch adds an assertion.
This commit is contained in:
Max Kellermann 2009-05-06 18:46:59 +02:00
parent 438f3547cc
commit a4c59943d1

View File

@ -232,6 +232,8 @@ pc_seek(struct song *song, float seek_time)
pc.seek_where = seek_time;
player_command(PLAYER_COMMAND_SEEK);
assert(pc.next_song == NULL);
idle_add(IDLE_PLAYER);
return true;