From ce4d1f461a31da6adae370087f0516312c9410e4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 25 Nov 2013 23:38:51 +0100 Subject: sub: respect detected language for fuzzy-matched external subtitles Solve this by passing through the language to the player, which then uses the generic subtitle selection code to make a choice. Fixes #367. --- sub/find_subfiles.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sub/find_subfiles.h') diff --git a/sub/find_subfiles.h b/sub/find_subfiles.h index 30a26bb596..fa47864e71 100644 --- a/sub/find_subfiles.h +++ b/sub/find_subfiles.h @@ -21,6 +21,12 @@ struct MPOpts; -char **find_text_subtitles(struct MPOpts *opts, const char *fname); +struct subfn { + int priority; + char *fname; + char *lang; +}; + +struct subfn *find_text_subtitles(struct MPOpts *opts, const char *fname); #endif /* MPLAYER_FINDFILES_H */ -- cgit v1.2.3