mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-06-18 06:00:35 +00:00
gstreamer/pad: Assert post-probe data did not become None
GStreamer does not allow the probe to consume the reference here.
This commit is contained in:
parent
706fb66f0b
commit
061683af7b
|
@ -1098,10 +1098,11 @@ where
|
|||
(*info).data = query.as_mut_ptr() as *mut libc::c_void;
|
||||
}
|
||||
Some(PadProbeData::__Unknown(ptr)) => {
|
||||
assert_eq!(data_type, None);
|
||||
(*info).data = ptr as *mut libc::c_void;
|
||||
}
|
||||
None => {
|
||||
assert_ne!(data_type, Some(Query::static_type()));
|
||||
assert_eq!(data_type, None);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue