Skip to content

Commit

Permalink
gst-plugin-apriltag: compile without error
Browse files Browse the repository at this point in the history
Unfortunately doesn't solve the actual problem.
  • Loading branch information
astraw committed Dec 17, 2024
1 parent f2982f0 commit cedd81d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gst-plugin-apriltag/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,14 @@ fn tag_family_get_type() -> glib::Type {
];

let name = ffi::CString::new("GstApriltagTagFamily").unwrap();
#[allow(static_mut_refs)]
unsafe {
let type_ = gobject_sys::g_enum_register_static(name.as_ptr(), VALUES.as_ptr());
TYPE = glib::translate::from_glib(type_);
}
});

unsafe {
assert_ne!(TYPE, glib::Type::Invalid);
TYPE
}
unsafe { TYPE }
}

gst_plugin_define!(
Expand Down

0 comments on commit cedd81d

Please sign in to comment.