player/Listener: add virtual method OnPlayerError()
Replaces two global idle_add() calls.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user