player/Listener: add virtual method OnPlayerError()

Replaces two global idle_add() calls.
This commit is contained in:
Max Kellermann
2022-07-13 13:55:27 +02:00
parent a542a0804a
commit 047561dc22
5 changed files with 17 additions and 4 deletions
-4
View File
@@ -575,8 +575,6 @@ Player::OpenOutput() noexcept
pc.SetOutputError(std::current_exception());
idle_add(IDLE_PLAYER);
return false;
}
@@ -1065,8 +1063,6 @@ Player::PlayNextChunk() noexcept
pc.LockSetOutputError(std::current_exception());
idle_add(IDLE_PLAYER);
return false;
}