Commit 16077547 authored by Max Kellermann's avatar Max Kellermann

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

parent 028f659c
...@@ -234,6 +234,7 @@ try { ...@@ -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 ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment