mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-26 05:21:00 +00:00
webrtcink: Use correct property types for nvvideoconvert
These are enums and not plain integers. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1256>
This commit is contained in:
parent
8366716456
commit
c350f3c2af
1 changed files with 2 additions and 2 deletions
|
@ -405,8 +405,8 @@ fn make_converter_for_video_caps(caps: &gst::Caps) -> Result<gst::Element, Error
|
|||
} else if feature.contains(NVMM_MEMORY_FEATURE) {
|
||||
let queue = make_element("queue", None)?;
|
||||
let nvconvert = if let Ok(nvconvert) = make_element("nvvideoconvert", None) {
|
||||
nvconvert.set_property("compute-hw", 0);
|
||||
nvconvert.set_property("nvbuf-memory-type", 0);
|
||||
nvconvert.set_property_from_str("compute-hw", "Default");
|
||||
nvconvert.set_property_from_str("nvbuf-memory-type", "nvbuf-mem-default");
|
||||
nvconvert
|
||||
} else {
|
||||
make_element("nvvidconv", None)?
|
||||
|
|
Loading…
Reference in a new issue