From e42b3c6bbec993142dfabec337097518eb9c6361 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Wed, 30 Oct 2024 21:46:48 -0300 Subject: [PATCH] validate: action: Expose the .scenario() method 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 8c0b18ccf..35d4d296d 100644 --- a/gstreamer-validate/src/action.rs +++ b/gstreamer-validate/src/action.rs @@ -27,6 +27,15 @@ impl ActionRef { gst::StructureRef::from_glib_borrow_mut((*action).structure) } } + + #[doc(alias = "gst_validate_action_get_scenario")] + pub fn scenario(&self) -> Option { + unsafe { + let scenario = ffi::gst_validate_action_get_scenario(self.as_mut_ptr()); + + from_glib_full(scenario) + } + } } impl Action {