Commit 3b8e346e authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

input: Support file://localhost/ type URL when autodetecting subtitles.

parent d2bce59f
...@@ -266,7 +266,11 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path, ...@@ -266,7 +266,11 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
return NULL; return NULL;
if( !strncmp( psz_fname, "file://", 7 ) ) if( !strncmp( psz_fname, "file://", 7 ) )
{
psz_fname += 7; psz_fname += 7;
if( !strncmp( psz_fname, "localhost", 9 ) )
psz_fname += 9;
}
/* extract filename & dirname from psz_fname */ /* extract filename & dirname from psz_fname */
tmp = strrchr( psz_fname, DIR_SEP_CHAR ); tmp = strrchr( psz_fname, DIR_SEP_CHAR );
......
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