onvif: Update for allocation query caps API changes

This commit is contained in:
Sebastian Dröge 2023-01-19 16:38:06 +02:00
parent b6af64b970
commit 7cfd570c15

View file

@ -117,7 +117,7 @@ impl OnvifMetadataOverlay {
);
if upstream_has_meta || downstream_accepts_meta {
let mut query = gst::query::Allocation::new(&caps, false);
let mut query = gst::query::Allocation::new(Some(&caps), false);
if !self.srcpad.push_event(gst::event::Caps::new(&caps)) {
return Err(gst::FlowError::NotNegotiated);