From 8889b6351d0900baf867f08238f5a1243dbb295a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Wed, 29 Dec 2021 21:29:02 +0100 Subject: [PATCH] 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: --- subprojects/gst-plugins-bad/ext/assrender/gstassrender.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/ext/assrender/gstassrender.c b/subprojects/gst-plugins-bad/ext/assrender/gstassrender.c index 9210555f08..f1639ff906 100644 --- a/subprojects/gst-plugins-bad/ext/assrender/gstassrender.c +++ b/subprojects/gst-plugins-bad/ext/assrender/gstassrender.c @@ -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",