[vlc-devel] commit: Fluidsynth: convert path to ANSI on Windows ( Rémi Denis-Courmont )
git version control
git at videolan.org
Mon Jan 25 22:13:37 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jan 25 23:13:01 2010 +0200| [96cedc04a0aa0821381ca562479902adcf5a98f4] | committer: Rémi Denis-Courmont
Fluidsynth: convert path to ANSI on Windows
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=96cedc04a0aa0821381ca562479902adcf5a98f4
---
modules/codec/fluidsynth.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/codec/fluidsynth.c b/modules/codec/fluidsynth.c
index c98d28f..5221f8d 100644
--- a/modules/codec/fluidsynth.c
+++ b/modules/codec/fluidsynth.c
@@ -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);
More information about the vlc-devel
mailing list