Skip to content

Commit

Permalink
fluidsynth: replace deprecated fluid_settings_getstr()
Browse files Browse the repository at this point in the history
Simply depend on fluidsynth >=1.1.0 which introduced the new function to not
clutter the code with ifdefs.
  • Loading branch information
dlbeswick authored and ensonic committed Aug 7, 2019
1 parent 5d75330 commit b39563b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ dnl check for oil runtime compiler
ORC_CHECK([0.4.6])

dnl check for FluidSynth
PKG_CHECK_MODULES(FLUIDSYNTH, fluidsynth >= 1.0,
PKG_CHECK_MODULES(FLUIDSYNTH, fluidsynth >= 1.1.0,
[
AC_DEFINE(HAVE_FLUIDSYNTH, [1], [defined when we have a fluidsynth element])
have_fluidsynth=yes
Expand Down
4 changes: 2 additions & 2 deletions src/gst/fluidsynth/fluidsynth.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,9 +587,9 @@ gstbt_fluid_synth_get_property (GObject * object, guint prop_id,
g_value_set_double (value, d);
break;
case G_TYPE_STRING:
retval = fluid_settings_getstr (src->settings, name, &s);
retval = fluid_settings_dupstr (src->settings, name, &s);
if (retval)
g_value_set_string (value, s);
g_value_take_string (value, s);
break;
default:
g_critical ("Unexpected FluidSynth dynamic property type");
Expand Down

0 comments on commit b39563b

Please sign in to comment.