From 94313e67c5c318f6c13f8c2db9fd1e9f64d6683d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 6 Jul 2024 14:10:32 +0300 Subject: [PATCH] gstreamer: Unconditionally use gst_parse_context_copy() It's available since 1.12.1 and the minimum supported version for the bindings is 1.14 nowadays. Part-of: --- gstreamer/src/parse_context.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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(), }