[vlc-commits] subtitles: Fix "any subtitle" detection.

Hugo Beauzée-Luyssen git at videolan.org
Tue Apr 10 16:32:00 CEST 2012


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Tue Apr 10 16:24:02 2012 +0200| [2ae88e927cc5df1c07385412b72d60f86fc2f073] | committer: Hugo Beauzée-Luyssen

subtitles: Fix "any subtitle" detection.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2ae88e927cc5df1c07385412b72d60f86fc2f073
---

 src/input/subtitles.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/input/subtitles.c b/src/input/subtitles.c
index d44f459..0b4cd26 100644
--- a/src/input/subtitles.c
+++ b/src/input/subtitles.c
@@ -358,7 +358,7 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
                 }
             }
             else if( i_prio == SUB_PRIORITY_NONE &&
-                j == 0 )
+                j == -1 )
             {
                 /* doesn't contain the movie name, prefer files in f_dir over subdirs */
                 i_prio = SUB_PRIORITY_MATCH_NONE;



More information about the vlc-commits mailing list