From 00a5fecdbbab2b1e25a89c0f9caa5652ada40123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 8 Oct 2018 09:23:48 +0300 Subject: [PATCH] Remove EncodingTarget::add_profile() and consider it immutable --- Gir_GstPbutils.toml | 5 +++-- gstreamer-pbutils/src/auto/encoding_target.rs | 9 --------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/Gir_GstPbutils.toml b/Gir_GstPbutils.toml index 2d0672e72..87a55a7d8 100644 --- a/Gir_GstPbutils.toml +++ b/Gir_GstPbutils.toml @@ -193,8 +193,9 @@ status = "generate" [[object.function]] name = "add_profile" - [object.function.return] - bool_return_is_error = "Failed to add profile" + # can be provided on constructor and we better + # consider this immutable + ignore = true [[object.function]] name = "get_category" diff --git a/gstreamer-pbutils/src/auto/encoding_target.rs b/gstreamer-pbutils/src/auto/encoding_target.rs index 8fcc3285a..696bf4ea3 100644 --- a/gstreamer-pbutils/src/auto/encoding_target.rs +++ b/gstreamer-pbutils/src/auto/encoding_target.rs @@ -5,7 +5,6 @@ use EncodingProfile; use Error; use ffi; -use glib; use glib::object::IsA; use glib::translate::*; use glib_ffi; @@ -55,8 +54,6 @@ unsafe impl Send for EncodingTarget {} unsafe impl Sync for EncodingTarget {} pub trait EncodingTargetExt { - fn add_profile>(&self, profile: &P) -> Result<(), glib::error::BoolError>; - fn get_category(&self) -> String; fn get_description(&self) -> String; @@ -73,12 +70,6 @@ pub trait EncodingTargetExt { } impl> EncodingTargetExt for O { - fn add_profile>(&self, profile: &P) -> Result<(), glib::error::BoolError> { - unsafe { - glib::error::BoolError::from_glib(ffi::gst_encoding_target_add_profile(self.to_glib_none().0, profile.to_glib_full()), "Failed to add profile") - } - } - fn get_category(&self) -> String { unsafe { from_glib_none(ffi::gst_encoding_target_get_category(self.to_glib_none().0))