parsebin: Guess subtitle/ caps as text streams

The subtitles in ogg/kate are identified using subtitle/ caps names.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1213>
This commit is contained in:
Philippe Normand 2021-06-24 16:00:03 +01:00 committed by GStreamer Marge Bot
parent e43bbaf3d9
commit 8ad1ea0297

View 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;