output/Thread: update "last_error" after filter/play errors

This commit is contained in:
Max Kellermann 2018-01-02 17:59:37 +01:00
parent 028f659c40
commit 1607754771
1 changed files with 3 additions and 0 deletions

View File

@ -234,6 +234,7 @@ try {
} catch (...) {
FormatError(std::current_exception(),
"Failed to filter for %s", GetLogName());
last_error = std::current_exception();
InternalClose(false);
@ -279,6 +280,8 @@ AudioOutputControl::PlayChunk() noexcept
} catch (...) {
FormatError(std::current_exception(),
"Failed to play on %s", GetLogName());
last_error = std::current_exception();
InternalClose(false);
/* don't automatically reopen this device for