From 6e36e2ddfdba70f0514f21709aa2bb264ad92b47 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sat, 8 Apr 2023 01:51:12 +0900 Subject: [PATCH] transcriberbin: Allow video with ANY caps features transcriberbin does not read/write video buffers actually. Allow ANY caps features in order to avoid unnecessary GPU upload/download Part-of: --- docs/plugins/gst_plugins_cache.json | 4 ++-- video/closedcaption/src/transcriberbin/imp.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/plugins/gst_plugins_cache.json b/docs/plugins/gst_plugins_cache.json index 553e520a..9f3bfcef 100644 --- a/docs/plugins/gst_plugins_cache.json +++ b/docs/plugins/gst_plugins_cache.json @@ -4899,7 +4899,7 @@ "presence": "always" }, "sink_video": { - "caps": "video/x-raw:\n", + "caps": "video/x-raw(ANY):\n", "direction": "sink", "presence": "always" }, @@ -4909,7 +4909,7 @@ "presence": "always" }, "src_video": { - "caps": "video/x-raw:\n", + "caps": "video/x-raw(ANY):\n", "direction": "src", "presence": "always" } diff --git a/video/closedcaption/src/transcriberbin/imp.rs b/video/closedcaption/src/transcriberbin/imp.rs index 94638438..e49a7386 100644 --- a/video/closedcaption/src/transcriberbin/imp.rs +++ b/video/closedcaption/src/transcriberbin/imp.rs @@ -1103,7 +1103,7 @@ impl ElementImpl for TranscriberBin { fn pad_templates() -> &'static [gst::PadTemplate] { static PAD_TEMPLATES: Lazy> = Lazy::new(|| { - let caps = gst::Caps::builder("video/x-raw").build(); + let caps = gst::Caps::builder("video/x-raw").any_features().build(); let video_src_pad_template = gst::PadTemplate::new( "src_video", gst::PadDirection::Src,