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

Hugo Beauzée-Luyssen git at videolan.org
Wed Apr 11 19:12:25 CEST 2012


vlc/vlc-2.0 | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Tue Apr 10 16:24:02 2012 +0200| [0b5bfb38ab3c03b2c2ce1063c0cffcb0d1fb9b10] | committer: Jean-Baptiste Kempf

subtitles: Fix "any subtitle" detection.
(cherry picked from commit 2ae88e927cc5df1c07385412b72d60f86fc2f073)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=0b5bfb38ab3c03b2c2ce1063c0cffcb0d1fb9b10
---

 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 e0c468d..ec646e8 100644
--- a/src/input/subtitles.c
+++ b/src/input/subtitles.c
@@ -360,7 +360,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