gstreamer: Remove one unnecessary use of unsafe in query code

This commit is contained in:
Sebastian Dröge 2021-10-17 12:38:59 +03:00
parent 3d39faac28
commit 87e7a84a27

View file

@ -212,7 +212,7 @@ macro_rules! declare_concrete_query(
impl From<$name<Query>> for Query {
fn from(concrete: $name<Query>) -> Self {
skip_assert_initialized!();
unsafe { from_glib_none(concrete.0.as_mut_ptr()) }
concrete.0
}
}
}