Commit 953697e9 authored by Christophe Massiot's avatar Christophe Massiot

* modules/codec/fake.c: Added missing ToLocale().

parent cfac4eb5
...@@ -105,7 +105,7 @@ static int OpenDecoder( vlc_object_t *p_this ) ...@@ -105,7 +105,7 @@ static int OpenDecoder( vlc_object_t *p_this )
image_handler_t *p_handler; image_handler_t *p_handler;
video_format_t fmt_in, fmt_out; video_format_t fmt_in, fmt_out;
picture_t *p_image; picture_t *p_image;
char *psz_file; char *psz_file, *psz_local;
vlc_bool_t b_keep_ar; vlc_bool_t b_keep_ar;
int i_aspect = 0; int i_aspect = 0;
...@@ -160,7 +160,9 @@ static int OpenDecoder( vlc_object_t *p_this ) ...@@ -160,7 +160,9 @@ static int OpenDecoder( vlc_object_t *p_this )
} }
p_handler = image_HandlerCreate( p_dec ); 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 ); image_HandlerDelete( p_handler );
if ( p_image == NULL ) if ( p_image == NULL )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment