gstreamer/uri_handler: Update for glib bindings API changes

This commit is contained in:
Sebastian Dröge 2021-03-09 11:17:15 +02:00
parent a311591310
commit 0b61713398

View file

@ -50,7 +50,7 @@ unsafe extern "C" fn uri_handler_get_type<T: URIHandlerImpl>(
unsafe extern "C" fn uri_handler_get_protocols<T: URIHandlerImpl>(
_type_: glib::ffi::GType,
) -> *const *const libc::c_char {
let data = <T as ObjectSubclass>::type_data();
let data = <T as ObjectSubclassType>::type_data();
data.as_ref()
.get_class_data::<CStrV>(URIHandler::static_type())
.unwrap_or(&CStrV(std::ptr::null()))