aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/ThreadInputStream.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-10-11 21:52:38 +0200
committerMax Kellermann <max@duempel.org>2014-10-11 21:59:06 +0200
commit85301853d6403b400c6545b8072d3962d7b66657 (patch)
tree45b2febe8b514b498904e2ede339dca2ada60bb4 /src/input/ThreadInputStream.cxx
parent7cd53fb4527cf6a28b6defd673100d9ea870076d (diff)
downloadmpd-85301853d6403b400c6545b8072d3962d7b66657.tar.gz
mpd-85301853d6403b400c6545b8072d3962d7b66657.tar.xz
mpd-85301853d6403b400c6545b8072d3962d7b66657.zip
ThreadInputStream: call ThreadRead() inside the thread instead of Read()
Fixes deadlock bug in the "mms" plugin.
Diffstat (limited to 'src/input/ThreadInputStream.cxx')
-rw-r--r--src/input/ThreadInputStream.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/ThreadInputStream.cxx b/src/input/ThreadInputStream.cxx
index 821ce3e4a..235ed2b01 100644
--- a/src/input/ThreadInputStream.cxx
+++ b/src/input/ThreadInputStream.cxx
@@ -88,7 +88,7 @@ ThreadInputStream::ThreadFunc()
Unlock();
Error error;
- size_t nbytes = Read(w.data, w.size, error);
+ size_t nbytes = ThreadRead(w.data, w.size, error);
Lock();
cond.broadcast();