assrender: Support RFC8081 mime types

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>
This commit is contained in:
Rafał Dzięgiel 2021-12-29 21:29:02 +01:00 committed by GStreamer Marge Bot
parent a2719d79ff
commit 8889b6351d

View file

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