From aed0af1e00b7d3f1bbe886a50cc140d01fc2bff8 Mon Sep 17 00:00:00 2001 From: jai Date: Fri, 29 May 2015 22:37:49 +0200 Subject: input/smbclient: fix DFF playback --- src/input/plugins/SmbclientInputPlugin.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src/input/plugins') diff --git a/src/input/plugins/SmbclientInputPlugin.cxx b/src/input/plugins/SmbclientInputPlugin.cxx index 79987180f..399613720 100644 --- a/src/input/plugins/SmbclientInputPlugin.cxx +++ b/src/input/plugins/SmbclientInputPlugin.cxx @@ -132,6 +132,7 @@ SmbclientInputStream::Read(void *ptr, size_t read_size, Error &error) nbytes = 0; } + offset += nbytes; return nbytes; } -- cgit v1.2.3 From 947e902288d5436c62214c509fda81708815b3d6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 19 Jun 2015 16:45:38 +0200 Subject: input/curl: trigger the condition variable in RequestDone() Fixes deadlock on small responses. --- src/input/plugins/CurlInputPlugin.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/input/plugins') diff --git a/src/input/plugins/CurlInputPlugin.cxx b/src/input/plugins/CurlInputPlugin.cxx index abb7e312c..3aa3b0018 100644 --- a/src/input/plugins/CurlInputPlugin.cxx +++ b/src/input/plugins/CurlInputPlugin.cxx @@ -453,6 +453,8 @@ CurlInputStream::RequestDone(CURLcode result, long status) SeekDone(); else if (!IsReady()) SetReady(); + else + cond.broadcast(); } static void -- cgit v1.2.3