aboutsummaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--NEWS2
-rw-r--r--src/input/ThreadInputStream.cxx2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 510e2ae3b..5245bec49 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,6 @@
ver 0.19.1 (not yet released)
+* input
+ - mms: fix deadlock bug
* fix build failure on Mac OS X
ver 0.19 (2014/10/10)
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();