assrender: Handle ".ttc" attachment extension
authorRafał Dzięgiel <rafostar.github@gmail.com>
Wed, 29 Dec 2021 20:28:56 +0000 (21:28 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 3 Jan 2022 06:42:23 +0000 (06:42 +0000)
TTC stands for "TrueType Collection" file. We can pass it
into libass as any other attachment. Add it to the supported
extensions list, so the fonts it contains will be used.

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

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

index 81bd5a8..9210555 100644 (file)
@@ -1558,7 +1558,8 @@ gst_ass_render_handle_tag_sample (GstAssRender * render, GstSample * sample)
   };
   static const gchar *extensions[] = {
     ".otf",
-    ".ttf"
+    ".ttf",
+    ".ttc"
   };
 
   GstBuffer *buf;