Commit 1161687d authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* strip file:// from subtitle autodetect path if present in uri.

parent 0e977dd3
......@@ -234,7 +234,6 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
char *f_dir, *f_fname, *f_fname_noext, *f_fname_trim, *tmp;
/* variables to be used for derivatives FILE *f */
char *tmp_fname_noext, *tmp_fname_trim, *tmp_fname_ext, *tmpresult;
vlc_value_t fuzzy;
int len, i, j, i_sub_count;
subfn *result; /* unsorted results */
......@@ -245,6 +244,11 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
DIR *d;
struct dirent *de;
if( !strncmp( psz_fname, "file://", 7 ) )
{
psz_fname += 7;
}
i_sub_count = 0;
len = strlen( psz_fname ) > 256 ? strlen( psz_fname ) : 256;
......
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