diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-10-13 19:04:46 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-10-13 19:04:46 +0200 |
commit | af96e1ce92c751f92cdb862985d1abe7362a6e59 (patch) | |
tree | becd9199f426f2b53cca4f40eba443e8a6e94196 /decoder.c | |
parent | 18399d8f41e0154af266f43fd4a05420cb335aa7 (diff) |
Resample files when transcoding to mp3 using libsamplerate.
Diffstat (limited to 'decoder.c')
-rw-r--r-- | decoder.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |