playlist: clear pc.errored_song on delete
When a (remote) song is deleted from the playlist, there may still be a reference to it in pc.errored_song. Clear this reference.
This commit is contained in:
@@ -44,6 +44,13 @@ void pc_deinit(void)
|
||||
notify_deinit(&pc.notify);
|
||||
}
|
||||
|
||||
void
|
||||
pc_song_deleted(const struct song *song)
|
||||
{
|
||||
if (pc.errored_song == song)
|
||||
pc.errored_song = NULL;
|
||||
}
|
||||
|
||||
static void player_command(enum player_command cmd)
|
||||
{
|
||||
pc.command = cmd;
|
||||
|
||||
Reference in New Issue
Block a user