]> git.sesse.net Git - vlc/commitdiff
input: Support file://localhost/ type URL when autodetecting subtitles.
authorPierre d'Herbemont <pdherbemont@free.fr>
Sat, 10 Oct 2009 17:03:54 +0000 (19:03 +0200)
committerPierre d'Herbemont <pdherbemont@free.fr>
Sat, 10 Oct 2009 17:04:42 +0000 (19:04 +0200)
src/input/subtitles.c

index c721a7958ef3cdbd0f695d973620c3702638fcb3..30078a9ed5273067845f26adac0fb4ae6e33ba47 100644 (file)
@@ -266,7 +266,11 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
         return NULL;
 
     if( !strncmp( psz_fname, "file://", 7 ) )
+    {
         psz_fname += 7;
+        if( !strncmp( psz_fname, "localhost", 9 ) )
+            psz_fname += 9;
+    }
 
     /* extract filename & dirname from psz_fname */
     tmp = strrchr( psz_fname, DIR_SEP_CHAR );