From cfbd8201533405964821aa20d2b96425deb1c625 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Wed, 20 Jan 2021 12:04:48 +0100 Subject: [PATCH] assrender: Add "application/vnd.ms-opentype" mimetype detection The "application/vnd.ms-opentype" mimetype is commonly used in many fonts attached in the matroska videos. Assrender should treat it as compatible without the need of parsing the file extension. Part-of: --- subprojects/gst-plugins-bad/ext/assrender/gstassrender.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/ext/assrender/gstassrender.c b/subprojects/gst-plugins-bad/ext/assrender/gstassrender.c index 51c7987..81bd5a8 100644 --- a/subprojects/gst-plugins-bad/ext/assrender/gstassrender.c +++ b/subprojects/gst-plugins-bad/ext/assrender/gstassrender.c @@ -1553,7 +1553,8 @@ gst_ass_render_handle_tag_sample (GstAssRender * render, GstSample * sample) static const gchar *mimetypes[] = { "application/x-font-ttf", "application/x-font-otf", - "application/x-truetype-font" + "application/x-truetype-font", + "application/vnd.ms-opentype" }; static const gchar *extensions[] = { ".otf", -- 2.7.4