Commit a4c59943 authored by Max Kellermann's avatar Max Kellermann

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.
parent 438f3547
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment