summaryrefslogtreecommitdiffstats
path: root/ext/musepack/gstmusepackdec.h
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-04-24 22:19:48 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-04-24 22:19:48 +0000
commit01bcb096c75d8f4264390b8afb6f307ca97e23f0 (patch)
tree13bd3fd207bbeca69c3186ffc991510cbc0cbf1e /ext/musepack/gstmusepackdec.h
parent36d15d78686e14036677ccb1e6c4a98f287b6073 (diff)
downloadgst-plugins-bad-01bcb096c75d8f4264390b8afb6f307ca97e23f0.tar.gz
gst-plugins-bad-01bcb096c75d8f4264390b8afb6f307ca97e23f0.tar.bz2
gst-plugins-bad-01bcb096c75d8f4264390b8afb6f307ca97e23f0.zip
Add support for the new libmpcdec API which magically gets us support for SV8 files. Also do some random cleanup. Fix...
Original commit message from CVS: * configure.ac: * ext/musepack/gstmusepackdec.c: (gst_musepackdec_base_init), (gst_musepackdec_init), (gst_musepackdec_dispose), (gst_musepackdec_handle_seek_event), (gst_musepack_stream_init), (gst_musepackdec_loop), (plugin_init): * ext/musepack/gstmusepackdec.h: * ext/musepack/gstmusepackreader.c: * ext/musepack/gstmusepackreader.h: Add support for the new libmpcdec API which magically gets us support for SV8 files. Also do some random cleanup. Fixes bug #526905.
Diffstat (limited to 'ext/musepack/gstmusepackdec.h')
-rw-r--r--ext/musepack/gstmusepackdec.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/musepack/gstmusepackdec.h b/ext/musepack/gstmusepackdec.h
index 858372fd..517861d1 100644
--- a/ext/musepack/gstmusepackdec.h
+++ b/ext/musepack/gstmusepackdec.h
@@ -20,7 +20,12 @@
#ifndef __GST_MUSEPACK_DEC_H__
#define __GST_MUSEPACK_DEC_H__
+#ifdef MPC_IS_OLD_API
#include <mpcdec/mpcdec.h>
+#else
+#include <mpc/mpcdec.h>
+#endif
+
#include <gst/gst.h>
G_BEGIN_DECLS
@@ -46,7 +51,11 @@ typedef struct _GstMusepackDec {
guint64 offset;
/* MUSEPACK_DEC object */
+#ifdef MPC_IS_OLD_API
mpc_decoder *d;
+#else
+ mpc_demux *d;
+#endif
mpc_reader *r;
gint bps; /* bytes per sample */ /* ATOMIC */