From 15f38b89eeb7cbb72a84dabc19b706ede455399c Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 29 Dec 2013 13:49:01 +0100 Subject: player: add two more font mimetypes recognized by Haali The Haali Matroska splitter is basically the reference implementation for this crap, and it knows only: application/vnd.ms-opentype application/x-font-ttf application/x-truetype-font Two of them were missing in our code. One of them, "application/x-font", is probably plain incorrect, but I can't really tell. Also see: http://www.cccp-project.net/beta/test_files/fontsample.mkv --- player/loadfile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'player/loadfile.c') diff --git a/player/loadfile.c b/player/loadfile.c index f527cb852d..402b30c5be 100644 --- a/player/loadfile.c +++ b/player/loadfile.c @@ -845,7 +845,9 @@ static void open_subtitles_from_resolve(struct MPContext *mpctx) static const char *font_mimetypes[] = { "application/x-truetype-font", - "application/x-font", + "application/vnd.ms-opentype", + "application/x-font-ttf", + "application/x-font", // probably incorrect NULL }; -- cgit v1.2.3