parsebin: Guess subtitle/ caps as text streams
authorPhilippe Normand <philn@igalia.com>
Thu, 24 Jun 2021 15:00:03 +0000 (16:00 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 2 Sep 2021 17:29:51 +0000 (17:29 +0000)
The subtitles in ogg/kate are identified using subtitle/ caps names.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1213>

gst/playback/gstparsebin.c

index 6c3e101..289d0c0 100644 (file)
@@ -3884,6 +3884,7 @@ guess_stream_type_from_caps (GstCaps * caps)
     return GST_STREAM_TYPE_AUDIO;
   if (g_str_has_prefix (name, "text/") ||
       g_str_has_prefix (name, "subpicture/") ||
+      g_str_has_prefix (name, "subtitle/") ||
       g_str_has_prefix (name, "closedcaption/"))
     return GST_STREAM_TYPE_TEXT;