aboutsummaryrefslogtreecommitdiff
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-15 00:38:58 +0200
committerMax Kellermann <max@duempel.org>2012-08-15 00:39:22 +0200
commitc31d11bfe07a6c37d53061dd0ef732d602f98154 (patch)
tree0737dab663a75bc192e5264f1b0d910db9d102de /src/decoder
parentc8ec85d649e46df87d1b526fde2d8234428925c0 (diff)
decoder/fluidsynth: don't duplicate path
The libfluidsynth now accepts const strings.
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/fluidsynth_decoder_plugin.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/decoder/fluidsynth_decoder_plugin.c b/src/decoder/fluidsynth_decoder_plugin.c
index 8cb524c9..b55c1db5 100644
--- a/src/decoder/fluidsynth_decoder_plugin.c
+++ b/src/decoder/fluidsynth_decoder_plugin.c
@@ -99,7 +99,6 @@ fluidsynth_file_decode(struct decoder *decoder, const char *path_fs)
fluid_settings_t *settings;
fluid_synth_t *synth;
fluid_player_t *player;
- char *path_dup;
int ret;
enum decoder_command cmd;
@@ -144,11 +143,7 @@ fluidsynth_file_decode(struct decoder *decoder, const char *path_fs)
return;
}
- /* temporarily duplicate the path_fs string, because
- fluidsynth wants a writable string */
- path_dup = g_strdup(path_fs);
- ret = fluid_player_add(player, path_dup);
- g_free(path_dup);
+ ret = fluid_player_add(player, path_fs);
if (ret != 0) {
g_warning("fluid_player_add() failed");
delete_fluid_player(player);