[vlc-commits] commit: Compile time support for FluidSynth 1.0 ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Sat Apr 17 10:35:58 CEST 2010


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Apr 17 11:21:23 2010 +0300| [af970f601e059aff7bab4a277b72348b5ed74c7a] | committer: Rémi Denis-Courmont 

Compile time support for FluidSynth 1.0

Packagers shall be responsible for fixing FluidSynth thread-safety
issues if they choose to use this old buggy version.
(cherry picked from commit 5e896a268cc1c11ad1934aa70c378e0f94d12372)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=af970f601e059aff7bab4a277b72348b5ed74c7a
---

 modules/codec/fluidsynth.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/modules/codec/fluidsynth.c b/modules/codec/fluidsynth.c
index a2673ff..9bf5906 100644
--- a/modules/codec/fluidsynth.c
+++ b/modules/codec/fluidsynth.c
@@ -38,6 +38,13 @@
 
 #include <fluidsynth.h>
 
+#if (FLUIDSYNTH_VERSION_MAJOR < 1) \
+ || (FLUIDSYNTH_VERSION_MAJOR == 1 && FLUIDSYNTH_VERSION_MINOR < 1)
+# define fluid_synth_sysex(synth, ptr, len, d, e, f, g) (FLUID_FAILED)
+# define fluid_synth_system_reset(synth) (FLUID_FAILED)
+# define fluid_synth_channel_pressure(synth, channel, p) (FLUID_FAILED)
+#endif
+
 #define SOUNDFONT_TEXT N_("Sound fonts (required)")
 #define SOUNDFONT_LONGTEXT N_( \
     "A sound fonts file is required for software synthesis." )



More information about the vlc-commits mailing list