diff options
author | Max Kellermann <max@musicpd.org> | 2018-01-02 17:59:37 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-01-02 17:59:37 +0100 |
commit | 16077547715b2bb4e2f39a0251070244cb8b391c (patch) | |
tree | 9e2be2d0a98a99276e5a4a185c84c24a1f2df924 /src/output | |
parent | 028f659c403f1a8edb87b308feb52dcecc0038cd (diff) |
output/Thread: update "last_error" after filter/play errors
Diffstat (limited to 'src/output')
-rw-r--r-- | src/output/Thread.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/output/Thread.cxx b/src/output/Thread.cxx index eb44776f1..2f3b9ae7c 100644 --- a/src/output/Thread.cxx +++ b/src/output/Thread.cxx @@ -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 |