Commit 0b5bfb38 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

subtitles: Fix "any subtitle" detection.

(cherry picked from commit 2ae88e927cc5df1c07385412b72d60f86fc2f073)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 9777ead1
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment