summaryrefslogtreecommitdiff
path: root/ext/mpg123
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2013-04-15 00:22:39 -0700
committerDavid Schleef <ds@schleef.org>2013-04-15 00:25:16 -0700
commit2b160f516a6caa976ad224bc90adb71570ccc55d (patch)
treecbef02ead4f484ed89694a7b26faa27e50dd9073 /ext/mpg123
parent27c546ad1ee5398127806749640466344819c8c5 (diff)
downloadgstreamer-plugins-bad-2b160f516a6caa976ad224bc90adb71570ccc55d.tar.gz
mpg123: Add conditional on API version for new enum
Diffstat (limited to 'ext/mpg123')
-rw-r--r--ext/mpg123/gstmpg123audiodec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mpg123/gstmpg123audiodec.c b/ext/mpg123/gstmpg123audiodec.c
index 2234fe340..930d984c3 100644
--- a/ext/mpg123/gstmpg123audiodec.c
+++ b/ext/mpg123/gstmpg123audiodec.c
@@ -226,9 +226,13 @@ gst_mpg123_audio_dec_start (GstAudioDecoder * dec)
/* Sets the resync limit to the end of the stream (otherwise mpg123 may give
* up on decoding prematurely, especially with mp3 web radios) */
mpg123_param (mpg123_decoder->handle, MPG123_RESYNC_LIMIT, -1, 0);
+#if MPG123_API_VERSION >= 36
+ /* The precise API version where MPG123_AUTO_RESAMPLE appeared is
+ * somewhere between 29 and 36 */
/* Don't let mpg123 resample output */
mpg123_param (mpg123_decoder->handle, MPG123_REMOVE_FLAGS,
MPG123_AUTO_RESAMPLE, 0);
+#endif
/* Don't let mpg123 print messages to stdout/stderr */
mpg123_param (mpg123_decoder->handle, MPG123_ADD_FLAGS, MPG123_QUIET, 0);