summaryrefslogtreecommitdiff
path: root/decoder.c
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2010-10-13 19:04:46 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2010-10-13 19:04:46 +0200
commitaf96e1ce92c751f92cdb862985d1abe7362a6e59 (patch)
treebecd9199f426f2b53cca4f40eba443e8a6e94196 /decoder.c
parent18399d8f41e0154af266f43fd4a05420cb335aa7 (diff)
Resample files when transcoding to mp3 using libsamplerate.
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;