From 7041d8cd3735c3832cc2ce7ed62467c25c37f511 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 4 Jan 2014 01:27:06 +0100 Subject: vo: dropping subtitle files on the VO window adds them as subtitle files Note that we don't try to be clever about detecting the files as subtitles: we just check the file extension. We could go all the way and check the files by opening them with a demuxer, but that would probably do more bad than good. --- sub/find_subfiles.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sub/find_subfiles.h') diff --git a/sub/find_subfiles.h b/sub/find_subfiles.h index d11c02627b..85b491f1f9 100644 --- a/sub/find_subfiles.h +++ b/sub/find_subfiles.h @@ -19,6 +19,8 @@ #ifndef MPLAYER_FIND_SUBFILES_H #define MPLAYER_FIND_SUBFILES_H +#include + struct subfn { int priority; char *fname; @@ -28,4 +30,6 @@ struct subfn { struct mpv_global; struct subfn *find_text_subtitles(struct mpv_global *global, const char *fname); +bool mp_might_be_subtitle_file(const char *filename); + #endif /* MPLAYER_FINDFILES_H */ -- cgit v1.2.3