Commit 9653b36c authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Open the .sub file of the vobsubs, with the ToLocale version of the path....

* Open the .sub file of the vobsubs, with the ToLocale version of the path. Should fix issues where the path of the vobsubs contains non-ascii chars. The .sub could then not be opened in some cases since it would try to open with the UTF-8 path. (We should check VLC modules for other cases of this annoying problem)
parent b25680f8
......@@ -177,8 +177,8 @@ static int Open ( vlc_object_t *p_this )
}
}
i_len = strlen( p_demux->psz_path );
psz_vobname = strdup( p_demux->psz_path );
psz_vobname = ToLocale( p_demux->psz_path );
i_len = strlen( psz_vobname );
strcpy( psz_vobname + i_len - 4, ".sub" );
......@@ -188,10 +188,10 @@ static int Open ( vlc_object_t *p_this )
msg_Err( p_demux, "couldn't open .sub Vobsub file: %s",
psz_vobname );
free( p_sys );
free( psz_vobname );
LocaleFree( psz_vobname );
return VLC_EGENERIC;
}
free( psz_vobname );
LocaleFree( psz_vobname );
return VLC_SUCCESS;
}
......
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