assrender: Support RFC8081 mime types
authorRafał Dzięgiel <rafostar.github@gmail.com>
Wed, 29 Dec 2021 20:29:02 +0000 (21:29 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 3 Jan 2022 06:42:23 +0000 (06:42 +0000)
Old "application/*" are now as per RFC8081 deprecated in favor of
new "font/*" mime types. Some new encoders are already using the
updated mime types. We need to also add them to the support list
in order for assrender to correctly identify them as fonts.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1481>

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

index 9210555..f1639ff 100644 (file)
@@ -1554,7 +1554,11 @@ gst_ass_render_handle_tag_sample (GstAssRender * render, GstSample * sample)
     "application/x-font-ttf",
     "application/x-font-otf",
     "application/x-truetype-font",
-    "application/vnd.ms-opentype"
+    "application/vnd.ms-opentype",
+    "font/ttf",
+    "font/otf",
+    "font/sfnt",
+    "font/collection"
   };
   static const gchar *extensions[] = {
     ".otf",