summaryrefslogtreecommitdiff
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
parente425fe3f9725262ec4fc44ea0e5a12360c1a2479 (diff)
decoder/Thread: log all errors
-rw-r--r--NEWS1
-rw-r--r--src/decoder/DecoderThread.cxx4
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index d24455c04..2fe023d6c 100644
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,7 @@ ver 0.20 (not yet released)
- id3: remove the "id3v1_encoding" setting; by definition, all ID3v1 tags
are ISO-Latin-1
* decoder
+ - improved error logging
- ffmpeg: support ReplayGain and MixRamp
- ffmpeg: support stream tags
- gme: add option "accuracy"
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: