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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1207>
This commit is contained in:
Rafał Dzięgiel 2021-01-20 12:04:48 +01:00 committed by GStreamer Marge Bot
parent 77a415c460
commit cfbd820153

View file

@ -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",