diff options
author | Grigori Goronzy <greg@blackbox> | 2010-06-01 22:49:22 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2010-06-01 23:15:41 +0200 |
commit | b784346e789814362e196e513a8988cd02d96bac (patch) | |
tree | e9d9665f9bf5c26d3b04ec52b73e5b89a25324d9 /mpcommon.h | |
parent | 2fcd4cf73e1a06119e5c3284abe05942967ce3ad (diff) | |
download | mpv-b784346e789814362e196e513a8988cd02d96bac.tar.bz2 mpv-b784346e789814362e196e513a8988cd02d96bac.tar.xz |
libass: match font attachments based on extension
Instead of only relying on the MIME type, use the file extension as a
fallback for deciding which attachments are fonts and should be fed to
libass.
This also refactors the check into a separate function in mpcommon.
Diffstat (limited to 'mpcommon.h')
-rw-r--r-- | mpcommon.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mpcommon.h b/mpcommon.h index d7894edf06..3c35b8221a 100644 --- a/mpcommon.h +++ b/mpcommon.h @@ -35,6 +35,7 @@ void update_subtitles(struct MPContext *mpctx, struct MPOpts *opts, void update_teletext(sh_video_t *sh_video, demuxer_t *demuxer, int reset); int select_audio(demuxer_t* demuxer, int audio_id, char* audio_lang); void set_osd_subtitle(struct MPContext *mpctx, subtitle *subs); +bool attachment_is_font(struct demux_attachment *att); extern int disable_system_conf; extern int disable_user_conf; |