diff --git a/generic/threadshare/src/jitterbuffer/jitterbuffer.rs b/generic/threadshare/src/jitterbuffer/jitterbuffer.rs index d240e3e24..1a55b85f0 100644 --- a/generic/threadshare/src/jitterbuffer/jitterbuffer.rs +++ b/generic/threadshare/src/jitterbuffer/jitterbuffer.rs @@ -54,7 +54,7 @@ impl ToGlib for RTPJitterBufferMode { } impl FromGlib for RTPJitterBufferMode { - fn from_glib(value: ffi::RTPJitterBufferMode) -> Self { + unsafe fn from_glib(value: ffi::RTPJitterBufferMode) -> Self { match value { 0 => RTPJitterBufferMode::None, 1 => RTPJitterBufferMode::Slave,