mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 02:26:35 +00:00
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:
parent
c846147275
commit
6e36e2ddfd
2 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue