assrender: Add "application/vnd.ms-opentype" mimetype detection
authorRafał Dzięgiel <rafostar.github@gmail.com>
Wed, 20 Jan 2021 11:04:48 +0000 (12:04 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 22 Oct 2021 23:41:26 +0000 (23:41 +0000)
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>

subprojects/gst-plugins-bad/ext/assrender/gstassrender.c

index 51c7987..81bd5a8 100644 (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",