Commit 061683af authored by Jan Alexander Steffens's avatar Jan Alexander Steffens

gstreamer/pad: Assert post-probe data did not become None

GStreamer does not allow the probe to consume the reference here.
parent 706fb66f
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment