diff --git a/gstreamer/src/parse_context.rs b/gstreamer/src/parse_context.rs index c865890c9..89b7f257c 100644 --- a/gstreamer/src/parse_context.rs +++ b/gstreamer/src/parse_context.rs @@ -9,15 +9,7 @@ glib::wrapper! { pub struct ParseContext(Boxed); match fn { - copy => |ptr| { - cfg_if::cfg_if! { - if #[cfg(feature = "v1_12_1")] { - ffi::gst_parse_context_copy(ptr) - } else { - glib::gobject_ffi::g_boxed_copy(ffi::gst_parse_context_get_type(), ptr as *mut _) as *mut ffi::GstParseContext - } - } - }, + copy => |ptr| ffi::gst_parse_context_copy(ptr), free => |ptr| ffi::gst_parse_context_free(ptr), type_ => || ffi::gst_parse_context_get_type(), }