]> git.sesse.net Git - vlc/commitdiff
Fluidsynth: convert path to ANSI on Windows
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 25 Jan 2010 21:13:01 +0000 (23:13 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 25 Jan 2010 21:13:34 +0000 (23:13 +0200)
modules/codec/fluidsynth.c

index c98d28f797d1f445cdf0f72c47bda8861b600e85..5221f8df1d76d89fb81174c6e48b10e8edcbca73 100644 (file)
@@ -29,6 +29,7 @@
 #include <vlc_codec.h>
 #include <vlc_cpu.h>
 #include <vlc_dialog.h>
+#include <vlc_charset.h>
 
 /* On Win32, we link statically */
 #ifdef WIN32
@@ -99,7 +100,9 @@ static int Open (vlc_object_t *p_this)
     p_sys->settings = new_fluid_settings ();
     p_sys->synth = new_fluid_synth (p_sys->settings);
     /* FIXME: I bet this is not thread-safe */
+    const char *lpath = ToLocale (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);