summaryrefslogtreecommitdiff
path: root/decoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'decoder.c')
-rw-r--r--decoder.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/decoder.c b/decoder.c
index 85e2203..ade0797 100644
--- a/decoder.c
+++ b/decoder.c
@@ -1,16 +1,16 @@
#include "decoder.h"
gboolean decoder_init(struct decoder *decoder) {
- return decoder->decoder->init(&(decoder->data));
+ return decoder->decoder->init(decoder);
}
gssize decoder_decode(struct decoder *decoder, GInputStream *input,
GOutputStream *output, GError **error) {
- return decoder->decoder->decode(decoder->data, input, output, error);
+ return decoder->decoder->decode(decoder, input, output, error);
}
void decoder_close(struct decoder *decoder) {
- decoder->decoder->close(decoder->data);
+ decoder->decoder->close(decoder);
}
extern const struct decoder_plugin decoder_mpg123_decoder;