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:
parent
438f3547cc
commit
a4c59943d1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user