mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-26 11:31:06 +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
1 changed files with 2 additions and 1 deletions
|
@ -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