output/Thread: update "last_error" after filter/play errors
This commit is contained in:
@@ -234,6 +234,7 @@ try {
|
|||||||
} catch (...) {
|
} catch (...) {
|
||||||
FormatError(std::current_exception(),
|
FormatError(std::current_exception(),
|
||||||
"Failed to filter for %s", GetLogName());
|
"Failed to filter for %s", GetLogName());
|
||||||
|
last_error = std::current_exception();
|
||||||
|
|
||||||
InternalClose(false);
|
InternalClose(false);
|
||||||
|
|
||||||
@@ -279,6 +280,8 @@ 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());
|
||||||
|
last_error = std::current_exception();
|
||||||
|
|
||||||
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