From 85301853d6403b400c6545b8072d3962d7b66657 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 11 Oct 2014 21:52:38 +0200 Subject: ThreadInputStream: call ThreadRead() inside the thread instead of Read() Fixes deadlock bug in the "mms" plugin. --- NEWS | 2 ++ src/input/ThreadInputStream.cxx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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(); -- cgit v1.2.3