[vlc-commits] fluidsynth: remove unused computation

Rémi Denis-Courmont git at videolan.org
Mon Mar 19 21:24:19 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Mar 19 21:07:39 2012 +0200| [6fe0882c078e57bf95df27c3a8aac8b09ffe3601] | committer: Rémi Denis-Courmont

fluidsynth: remove unused computation

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

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

diff --git a/modules/codec/fluidsynth.c b/modules/codec/fluidsynth.c
index c5d4787..5d8f406 100644
--- a/modules/codec/fluidsynth.c
+++ b/modules/codec/fluidsynth.c
@@ -27,7 +27,6 @@
 #include <vlc_plugin.h>
 #include <vlc_codec.h>
 #include <vlc_dialog.h>
-#include <vlc_charset.h>
 
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
@@ -117,11 +116,8 @@ static int Open (vlc_object_t *p_this)
     char *font_path = var_InheritString (p_this, "soundfont");
     if (font_path != NULL)
     {
-        const char *lpath = ToLocale (font_path);
-
         msg_Dbg (p_this, "loading sound fonts file %s", font_path);
         p_sys->soundfont = fluid_synth_sfload (p_sys->synth, font_path, 1);
-        LocaleFree (lpath);
         if (p_sys->soundfont == -1)
             msg_Err (p_this, "cannot load sound fonts file %s", font_path);
         free (font_path);



More information about the vlc-commits mailing list