diff options
author | Max Kellermann <max@duempel.org> | 2015-12-31 13:38:27 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-12-31 13:38:35 +0100 |
commit | 6c5b8bcf9d732165cbfd488575c787a698209db7 (patch) | |
tree | 8cfcf0c70f84f7477f77d7fbff5c48fe2b5d8ddf /src/decoder | |
parent | e425fe3f9725262ec4fc44ea0e5a12360c1a2479 (diff) |
decoder/Thread: log all errors
Diffstat (limited to 'src/decoder')
-rw-r--r-- | src/decoder/DecoderThread.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/decoder/DecoderThread.cxx b/src/decoder/DecoderThread.cxx index 668860fbf..173ea788c 100644 --- a/src/decoder/DecoderThread.cxx +++ b/src/decoder/DecoderThread.cxx @@ -446,6 +446,10 @@ decoder_task(void *arg) dc.replay_gain_db = 0; decoder_run(dc); + + if (dc.state == DecoderState::ERROR) + LogError(dc.error); + break; case DecoderCommand::SEEK: |