summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
Diffstat (limited to 'decoders')
-rw-r--r--decoders/decoder_mpg123.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/decoders/decoder_mpg123.c b/decoders/decoder_mpg123.c
index ea263f5..50391f4 100644
--- a/decoders/decoder_mpg123.c
+++ b/decoders/decoder_mpg123.c
@@ -30,7 +30,7 @@ static gboolean mpg123_decoder_init(gpointer *data) {
}
static gssize mpg123_decoder_decode(gpointer data, GInputStream *input,
- GOutputStream *output) {
+ GOutputStream *output, GError **error) {
mpg123_handle *handle = data;
gssize size;
int ret;
@@ -43,7 +43,7 @@ static gssize mpg123_decoder_decode(gpointer data, GInputStream *input,
if(mpg123_feed(handle, inbuf, inbuf_read) != MPG123_OK) {
g_debug("asdfasdf");
- g_warning(mpg123_strerror(handle));
+ *error = g_error_new(decoder_quark(), DECODER_CODE_ERROR, mpg123_strerror(handle));
return -1;
}
@@ -59,7 +59,7 @@ static gssize mpg123_decoder_decode(gpointer data, GInputStream *input,
if(ret != MPG123_OK && ret != MPG123_DONE && ret != MPG123_NEW_FORMAT
&& ret != MPG123_NEED_MORE) {
- g_warning(mpg123_plain_strerror(ret));
+ *error = g_error_new(decoder_quark(), DECODER_CODE_ERROR, mpg123_plain_strerror(ret));
return -1;
}