From a7f9c974545fe0861923c1d520bc8a9bf41f4620 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Wed, 3 Aug 2022 19:36:11 +0300 Subject: [PATCH] fluidsynth: correctly version guard methods We bumped the minimum version to 2.1 but the api we used wasn't introduced till version 2.2 of fluidsynth Follow-up to gstreamer/gstreamer!2718 https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2718 Part-of: --- subprojects/gst-plugins-bad/ext/fluidsynth/gstfluiddec.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/subprojects/gst-plugins-bad/ext/fluidsynth/gstfluiddec.c b/subprojects/gst-plugins-bad/ext/fluidsynth/gstfluiddec.c index 9c13a8b..c25f0ca 100644 --- a/subprojects/gst-plugins-bad/ext/fluidsynth/gstfluiddec.c +++ b/subprojects/gst-plugins-bad/ext/fluidsynth/gstfluiddec.c @@ -62,6 +62,11 @@ GST_DEBUG_CATEGORY_STATIC (gst_fluid_dec_debug); #define GST_CAT_DEFAULT gst_fluid_dec_debug +#if !GST_HAVE_FLUIDSYNTH_VERSION(2, 2, 0) +#define fluid_synth_chorus_on(synth,fx_group,on) fluid_synth_set_chorus_on(synth,on) +#define fluid_synth_reverb_on(synth,fx_group,on) fluid_synth_set_reverb_on(synth,on) +#endif + enum { /* FILL ME */ -- 2.7.4