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:
Jan Alexander Steffens (heftig) 2019-05-12 16:04:15 +02:00
parent 706fb66f0b
commit 061683af7b
No known key found for this signature in database
GPG key ID: DE5E0C5F25941CA5

View file

@ -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);
}
}