[vlc-devel] commit: input: Support file://localhost/ type URL when autodetecting subtitles. (Pierre d'Herbemont )
git version control
git at videolan.org
Sat Oct 10 19:04:44 CEST 2009
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Sat Oct 10 19:03:54 2009 +0200| [3b8e346ee2be5f3ba24b1f29c1d1bb64ec508465] | committer: Pierre d'Herbemont
input: Support file://localhost/ type URL when autodetecting subtitles.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3b8e346ee2be5f3ba24b1f29c1d1bb64ec508465
---
src/input/subtitles.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/input/subtitles.c b/src/input/subtitles.c
index c721a79..30078a9 100644
--- a/src/input/subtitles.c
+++ b/src/input/subtitles.c
@@ -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 );
More information about the vlc-devel
mailing list