From 8ad1ea02972217dc8222397544b5858ea01301b3 Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Thu, 24 Jun 2021 16:00:03 +0100 Subject: [PATCH] parsebin: Guess subtitle/ caps as text streams The subtitles in ogg/kate are identified using subtitle/ caps names. Part-of: --- gst/playback/gstparsebin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/playback/gstparsebin.c b/gst/playback/gstparsebin.c index 6c3e101..289d0c0 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; -- 2.7.4