mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-21 17:11:04 +00:00
validate: action: Expose the .scenario() method
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1586>
This commit is contained in:
parent
e06e0fb33e
commit
e42b3c6bbe
1 changed files with 9 additions and 0 deletions
|
@ -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<Scenario> {
|
||||
unsafe {
|
||||
let scenario = ffi::gst_validate_action_get_scenario(self.as_mut_ptr());
|
||||
|
||||
from_glib_full(scenario)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Action {
|
||||
|
|
Loading…
Reference in a new issue