mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 01:21:05 +00:00
gstreamer: Add some setters for Event
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1537>
This commit is contained in:
parent
e1accc5ffd
commit
301e25c832
1 changed files with 14 additions and 0 deletions
|
@ -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<crate::Stream> {
|
||||
|
|
Loading…
Reference in a new issue