summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Normand <philn@igalia.com>2021-06-24 16:00:03 +0100
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-09-02 17:29:51 +0000
commit8ad1ea02972217dc8222397544b5858ea01301b3 (patch)
tree408acee05fb698458f2f9105e8ffce24263e5a26
parente43bbaf3d97d0d85d01371fec68ae25f64aba393 (diff)
downloadgstreamer-plugins-base-8ad1ea02972217dc8222397544b5858ea01301b3.tar.gz
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>
-rw-r--r--gst/playback/gstparsebin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/playback/gstparsebin.c b/gst/playback/gstparsebin.c
index 6c3e101b8..289d0c013 100644
--- a/gst/playback/gstparsebin.c
+++ b/gst/playback/gstparsebin.c
@@ -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;