From: David Schleef Date: Mon, 15 Apr 2013 07:22:39 +0000 (-0700) Subject: mpg123: Add conditional on API version for new enum X-Git-Tag: 1.19.3~505^2~344^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c4399160f60d2989233eac6570322554679ec237;p=platform%2Fupstream%2Fgstreamer.git mpg123: Add conditional on API version for new enum --- diff --git a/ext/mpg123/gstmpg123audiodec.c b/ext/mpg123/gstmpg123audiodec.c index 2234fe3..930d984 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);