summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafał Dzięgiel <rafostar.github@gmail.com>2021-12-29 21:29:02 +0100
committerTim-Philipp Müller <tim@centricular.com>2022-01-17 23:35:30 +0000
commit7d19b935c5e97fccf141e3d2957dd94295fc9ff9 (patch)
tree87d7fb41a739d4f53f3682260abb6323722492f6
parentf7d7c575c6da0aa2a68926979165bf79b59fe594 (diff)
downloadgstreamer-plugins-bad-7d19b935c5e97fccf141e3d2957dd94295fc9ff9.tar.gz
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/gst-plugins-bad/-/merge_requests/2566>
-rw-r--r--ext/assrender/gstassrender.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/assrender/gstassrender.c b/ext/assrender/gstassrender.c
index f2dd843fb..8f8faa1a9 100644
--- a/ext/assrender/gstassrender.c
+++ b/ext/assrender/gstassrender.c
@@ -1547,7 +1547,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",