From 301e25c8329c9375789f6a29a8b1213be4179913 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Tue, 3 Sep 2024 11:15:37 -0400 Subject: [PATCH] gstreamer: Add some setters for Event Part-of: --- gstreamer/src/event.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gstreamer/src/event.rs b/gstreamer/src/event.rs index 827a70cc2..b7666b8b2 100644 --- a/gstreamer/src/event.rs +++ b/gstreamer/src/event.rs @@ -165,6 +165,13 @@ impl EventRef { } } + #[doc(alias = "gst_event_set_seqnum")] + pub fn set_seqnum(&mut self, seqnum: Seqnum) { + unsafe { + ffi::gst_event_set_seqnum(self.as_mut_ptr(), seqnum.0.get()); + } + } + #[doc(alias = "get_running_time_offset")] #[doc(alias = "gst_event_get_running_time_offset")] pub fn running_time_offset(&self) -> i64 { @@ -675,6 +682,13 @@ impl StreamStart { } } + #[doc(alias = "gst_event_set_group_id")] + pub fn set_group_id(&mut self, group_id: GroupId) { + unsafe { + ffi::gst_event_set_group_id(self.as_mut_ptr(), group_id.0.get()); + } + } + #[doc(alias = "get_stream")] #[doc(alias = "gst_event_parse_stream")] pub fn stream(&self) -> Option {