Permalink
Browse files

Fix file names with exts chars on Windows for melt file.

  • Loading branch information...
1 parent fad00e5 commit 3a9b297ce17534eb0a0566bd19fa69765faa6f27 @ddennedy ddennedy committed May 19, 2014
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/modules/core/producer_melt.c
@@ -31,6 +31,13 @@ mlt_producer producer_melt_init( mlt_profile profile, mlt_service_type type, con
mlt_producer producer_melt_file_init( mlt_profile profile, mlt_service_type type, const char *id, char *file )
{
+ // Convert file name string encoding.
+ mlt_properties properties = mlt_properties_new();
+ mlt_properties_set( properties, "filename", filename );
+ mlt_properties_from_utf8( properties, "filename", "_filename" );
+ file = mlt_properties_get( properties, "_filename" );
+ mlt_properties_close( properties );
+
FILE *input = fopen( file, "r" );
char **args = calloc( sizeof( char * ), MELT_FILE_MAX_LINES );
int count = 0;

0 comments on commit 3a9b297

Please sign in to comment.