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:
parent
e43bbaf3d9
commit
8ad1ea0297
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user