summaryrefslogtreecommitdiff
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-12-31 13:38:27 +0100
committerMax Kellermann <max@duempel.org>2015-12-31 13:38:35 +0100
commit6c5b8bcf9d732165cbfd488575c787a698209db7 (patch)
tree8cfcf0c70f84f7477f77d7fbff5c48fe2b5d8ddf /src/decoder
parente425fe3f9725262ec4fc44ea0e5a12360c1a2479 (diff)
decoder/Thread: log all errors
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/DecoderThread.cxx4
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: