]> git.sesse.net Git - vlc/commitdiff
* modules/codec/fake.c: Added missing ToLocale().
authorChristophe Massiot <massiot@videolan.org>
Fri, 2 Sep 2005 16:01:23 +0000 (16:01 +0000)
committerChristophe Massiot <massiot@videolan.org>
Fri, 2 Sep 2005 16:01:23 +0000 (16:01 +0000)
modules/codec/fake.c

index ea717de3a5aa7fa7d3add271c21da0cc47972f6c..8bd084bd4c2f4589c43cf3ad00c4bc6b107cb88b 100644 (file)
@@ -105,7 +105,7 @@ static int OpenDecoder( vlc_object_t *p_this )
     image_handler_t *p_handler;
     video_format_t fmt_in, fmt_out;
     picture_t *p_image;
-    char *psz_file;
+    char *psz_file, *psz_local;
     vlc_bool_t b_keep_ar;
     int i_aspect = 0;
 
@@ -160,7 +160,9 @@ static int OpenDecoder( vlc_object_t *p_this )
     }
 
     p_handler = image_HandlerCreate( p_dec );
-    p_image = image_ReadUrl( p_handler, psz_file, &fmt_in, &fmt_out );
+    psz_local = ToLocale( psz_file );
+    p_image = image_ReadUrl( p_handler, psz_local, &fmt_in, &fmt_out );
+    LocaleFree( psz_local );
     image_HandlerDelete( p_handler );
 
     if ( p_image == NULL )