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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1165>
This commit is contained in:
Seungha Yang 2023-04-08 01:51:12 +09:00
parent c846147275
commit 6e36e2ddfd
2 changed files with 3 additions and 3 deletions

View file

@ -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"
}

View file

@ -1103,7 +1103,7 @@ impl ElementImpl for TranscriberBin {
fn pad_templates() -> &'static [gst::PadTemplate] {
static PAD_TEMPLATES: Lazy<Vec<gst::PadTemplate>> = 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,