From dfa39be86f3ee9ce5b1f755cbf27a24df3466d34 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Wed, 17 May 2023 12:27:09 -0400 Subject: [PATCH] validate: action: Bind the set_done action type `gst_validate_action_set_done` is MT safe so we can simply call it. Part-of: --- gstreamer-validate/src/action.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gstreamer-validate/src/action.rs b/gstreamer-validate/src/action.rs index 4600fb90d..3a5678db4 100644 --- a/gstreamer-validate/src/action.rs +++ b/gstreamer-validate/src/action.rs @@ -25,6 +25,15 @@ impl ActionRef { gst::StructureRef::from_glib_borrow_mut((*action).structure) } } + + #[doc(alias = "gst_validate_action_set_done")] + pub fn set_done(&self) { + unsafe { + let action = self.as_mut_ptr(); + + ffi::gst_validate_action_set_done(action); + } + } } impl Action {