decoder/Thread: log all errors

This commit is contained in:
Max Kellermann
2015-12-31 13:38:27 +01:00
parent e425fe3f97
commit 6c5b8bcf9d
2 changed files with 5 additions and 0 deletions

1
NEWS
View File

@@ -14,6 +14,7 @@ ver 0.20 (not yet released)
- id3: remove the "id3v1_encoding" setting; by definition, all ID3v1 tags - id3: remove the "id3v1_encoding" setting; by definition, all ID3v1 tags
are ISO-Latin-1 are ISO-Latin-1
* decoder * decoder
- improved error logging
- ffmpeg: support ReplayGain and MixRamp - ffmpeg: support ReplayGain and MixRamp
- ffmpeg: support stream tags - ffmpeg: support stream tags
- gme: add option "accuracy" - gme: add option "accuracy"

View File

@@ -446,6 +446,10 @@ decoder_task(void *arg)
dc.replay_gain_db = 0; dc.replay_gain_db = 0;
decoder_run(dc); decoder_run(dc);
if (dc.state == DecoderState::ERROR)
LogError(dc.error);
break; break;
case DecoderCommand::SEEK: case DecoderCommand::SEEK: