summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafał Dzięgiel <rafostar.github@gmail.com>2021-01-20 12:04:48 +0100
committerTim-Philipp Müller <tim@centricular.com>2022-01-17 23:35:26 +0000
commitf7d7c575c6da0aa2a68926979165bf79b59fe594 (patch)
tree33d1c578e4fb2c0c008102a9fc54c58fc0acf4c1
parent8a7c698ca1a6494f2a8b46543ba1b497e1b7778f (diff)
downloadgstreamer-plugins-bad-f7d7c575c6da0aa2a68926979165bf79b59fe594.tar.gz
assrender: Add "application/vnd.ms-opentype" mimetype detection
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/gst-plugins-bad/-/merge_requests/2566>
-rw-r--r--ext/assrender/gstassrender.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/assrender/gstassrender.c b/ext/assrender/gstassrender.c
index 9b7d522c5..f2dd843fb 100644
--- a/ext/assrender/gstassrender.c
+++ b/ext/assrender/gstassrender.c
@@ -1546,7 +1546,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",