summaryrefslogtreecommitdiffstats
path: root/ext/flac/gstflacdec.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/flac/gstflacdec.h')
-rw-r--r--ext/flac/gstflacdec.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/flac/gstflacdec.h b/ext/flac/gstflacdec.h
index c1057ac8..f4eb9ba3 100644
--- a/ext/flac/gstflacdec.h
+++ b/ext/flac/gstflacdec.h
@@ -27,6 +27,12 @@
#include <FLAC/all.h>
+#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT < 8
+#define LEGACY_FLAC
+#else
+#undef LEGACY_FLAC
+#endif
+
G_BEGIN_DECLS
#define GST_TYPE_FLAC_DEC gst_flac_dec_get_type()
@@ -41,7 +47,11 @@ typedef struct _GstFlacDecClass GstFlacDecClass;
struct _GstFlacDec {
GstElement element;
+#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT < 8
FLAC__SeekableStreamDecoder *seekable_decoder; /* for pull-based operation */
+#else
+ FLAC__StreamDecoder *seekable_decoder; /* for pull-based operation */
+#endif
FLAC__StreamDecoder *stream_decoder; /* for chain-based operation */
GstAdapter *adapter;