]> git.sesse.net Git - vlc/commitdiff
* skip potential subtitle filenames that start with a dot.
authorDerk-Jan Hartman <hartman@videolan.org>
Tue, 17 Feb 2009 20:05:53 +0000 (21:05 +0100)
committerDerk-Jan Hartman <hartman@videolan.org>
Tue, 17 Feb 2009 20:06:55 +0000 (21:06 +0100)
src/input/subtitles.c

index 5e46df6ca9c46e15f17f94589ece728c5521a609..a5364cc2378cfe3a6743931fc3eecae90676a342 100644 (file)
@@ -345,7 +345,7 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
 
             int i_prio;
 
-            if( psz_name == NULL )
+            if( psz_name == NULL || psz_name[0] == '.' )
                 continue;
 
             /* retrieve various parts of the filename */