diff options
author | Max Kellermann <max@duempel.org> | 2011-09-15 21:00:29 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-09-16 11:30:56 +0200 |
commit | 0e1dc79321bc9002da7a45bda2f067da17edee7e (patch) | |
tree | cad5c9021338eb0d2e9604f78ce6a5ec4a3af1c7 /src/input | |
parent | 0ef15e5fac1f00a159a157bcd82d22b2d2eaea53 (diff) | |
download | mpd-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 'src/input')
-rw-r--r-- | src/input/soup_input_plugin.c | 1 |
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; } |