aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_internal.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-14 23:53:04 +0100
committerMax Kellermann <max@duempel.org>2009-12-15 23:12:11 +0100
commit228b03edf8513aa1cdaf4e4647279cc580245555 (patch)
tree7f5b03a9727fb8c371885469296eb7f49f6fa68b /src/decoder_internal.c
parentd000d31355c824a076324b647a3f056aab9ddabe (diff)
downloadmpd-228b03edf8513aa1cdaf4e4647279cc580245555.tar.gz
mpd-228b03edf8513aa1cdaf4e4647279cc580245555.tar.xz
mpd-228b03edf8513aa1cdaf4e4647279cc580245555.zip
input_stream: return errors with GError
Diffstat (limited to 'src/decoder_internal.c')
-rw-r--r--src/decoder_internal.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/decoder_internal.c b/src/decoder_internal.c
index cc4d4419f..b376a5755 100644
--- a/src/decoder_internal.c
+++ b/src/decoder_internal.c
@@ -37,10 +37,16 @@
static bool
decoder_input_buffer(struct decoder_control *dc, struct input_stream *is)
{
+ GError *error = NULL;
int ret;
decoder_unlock(dc);
- ret = input_stream_buffer(is);
+ ret = input_stream_buffer(is, &error);
+ if (ret < 0) {
+ g_warning("%s", error->message);
+ g_error_free(error);
+ }
+
decoder_lock(dc);
return ret > 0;