diff options
author | Max Kellermann <max@duempel.org> | 2013-11-08 12:15:05 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-11-08 12:15:05 +0100 |
commit | e076ff9085c517e9e3a6228080f2405637921f1c (patch) | |
tree | 82ce90109926437aa0100884f4538c907e3912c3 /src | |
parent | 2789493a5f6bdc8239c321c9d15987bf596f0b09 (diff) | |
download | mpd-e076ff9085c517e9e3a6228080f2405637921f1c.tar.gz mpd-e076ff9085c517e9e3a6228080f2405637921f1c.tar.xz mpd-e076ff9085c517e9e3a6228080f2405637921f1c.zip |
DecoderAPI: log without holding mutex
Diffstat (limited to 'src')
-rw-r--r-- | src/DecoderAPI.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DecoderAPI.cxx b/src/DecoderAPI.cxx index fbe4d98c0..87d104465 100644 --- a/src/DecoderAPI.cxx +++ b/src/DecoderAPI.cxx @@ -283,11 +283,11 @@ decoder_read(Decoder *decoder, assert(nbytes == 0 || !error.IsDefined()); assert(nbytes > 0 || error.IsDefined() || is.IsEOF()); + is.Unlock(); + if (gcc_unlikely(nbytes == 0 && error.IsDefined())) LogError(error); - is.Unlock(); - return nbytes; } |