output/Thread: move error handling code into the catch block
This commit is contained in:
@@ -279,10 +279,6 @@ AudioOutputControl::PlayChunk() noexcept
|
|||||||
} catch (...) {
|
} catch (...) {
|
||||||
FormatError(std::current_exception(),
|
FormatError(std::current_exception(),
|
||||||
"Failed to play on %s", GetLogName());
|
"Failed to play on %s", GetLogName());
|
||||||
nbytes = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (nbytes == 0) {
|
|
||||||
InternalClose(false);
|
InternalClose(false);
|
||||||
|
|
||||||
/* don't automatically reopen this device for
|
/* don't automatically reopen this device for
|
||||||
|
Reference in New Issue
Block a user