mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue