summaryrefslogtreecommitdiffstats
path: root/sub/find_subfiles.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-25 23:38:51 +0100
committerwm4 <wm4@nowhere>2013-11-25 23:41:02 +0100
commitce4d1f461a31da6adae370087f0516312c9410e4 (patch)
tree76d2293035ebab00eba9b04bc541896dfbb9474b /sub/find_subfiles.h
parent78fa766fcc61e7402ec3b2d0de842ebeb84b5639 (diff)
downloadmpv-ce4d1f461a31da6adae370087f0516312c9410e4.tar.bz2
mpv-ce4d1f461a31da6adae370087f0516312c9410e4.tar.xz
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.
Diffstat (limited to 'sub/find_subfiles.h')
-rw-r--r--sub/find_subfiles.h8
1 files changed, 7 insertions, 1 deletions
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 */