aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/soup_input_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-15 21:00:29 +0200
committerMax Kellermann <max@duempel.org>2011-09-16 11:30:56 +0200
commit0e1dc79321bc9002da7a45bda2f067da17edee7e (patch)
treecad5c9021338eb0d2e9604f78ce6a5ec4a3af1c7 /src/input/soup_input_plugin.c
parent0ef15e5fac1f00a159a157bcd82d22b2d2eaea53 (diff)
downloadmpd-0e1dc79321bc9002da7a45bda2f067da17edee7e.tar.gz
mpd-0e1dc79321bc9002da7a45bda2f067da17edee7e.tar.xz
mpd-0e1dc79321bc9002da7a45bda2f067da17edee7e.zip
input/soup: report failure in _read()
To report failures to callers who don't use _buffer().
Diffstat (limited to '')
-rw-r--r--src/input/soup_input_plugin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input/soup_input_plugin.c b/src/input/soup_input_plugin.c
index 7a2f3b47a..dfd3c2780 100644
--- a/src/input/soup_input_plugin.c
+++ b/src/input/soup_input_plugin.c
@@ -308,6 +308,7 @@ input_soup_read(struct input_stream *is, void *ptr, size_t size,
assert(!s->alive);
g_mutex_unlock(s->mutex);
+ g_set_error_literal(error_r, soup_quark(), 0, "HTTP failure");
return 0;
}