aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderAPI.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-11-08 12:15:05 +0100
committerMax Kellermann <max@duempel.org>2013-11-08 12:15:05 +0100
commite076ff9085c517e9e3a6228080f2405637921f1c (patch)
tree82ce90109926437aa0100884f4538c907e3912c3 /src/DecoderAPI.cxx
parent2789493a5f6bdc8239c321c9d15987bf596f0b09 (diff)
downloadmpd-e076ff9085c517e9e3a6228080f2405637921f1c.tar.gz
mpd-e076ff9085c517e9e3a6228080f2405637921f1c.tar.xz
mpd-e076ff9085c517e9e3a6228080f2405637921f1c.zip
DecoderAPI: log without holding mutex
Diffstat (limited to 'src/DecoderAPI.cxx')
-rw-r--r--src/DecoderAPI.cxx4
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;
}