diff options
author | Max Kellermann <max@duempel.org> | 2014-10-11 21:52:38 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-10-11 21:59:06 +0200 |
commit | 85301853d6403b400c6545b8072d3962d7b66657 (patch) | |
tree | 45b2febe8b514b498904e2ede339dca2ada60bb4 /src/input/ThreadInputStream.cxx | |
parent | 7cd53fb4527cf6a28b6defd673100d9ea870076d (diff) | |
download | mpd-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.cxx | 2 |
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(); |