gstreamer: Add some setters for Message

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1448>
This commit is contained in:
Arun Raghavan 2024-09-03 14:35:51 -04:00 committed by GStreamer Marge Bot
parent 700004b8ce
commit 224215a844

View file

@ -57,6 +57,13 @@ impl MessageRef {
}
}
#[doc(alias = "gst_message_set_seqnum")]
pub fn set_seqnum(&self, seqnum: Seqnum) {
unsafe {
ffi::gst_message_set_seqnum(self.as_mut_ptr(), seqnum.0.get());
}
}
#[doc(alias = "get_structure")]
#[doc(alias = "gst_message_get_structure")]
#[inline]
@ -2137,6 +2144,13 @@ impl StreamStart {
}
}
}
#[doc(alias = "gst_message_set_group_id")]
pub fn set_group_id(&mut self, group_id: GroupId) {
unsafe {
ffi::gst_message_set_group_id(self.as_mut_ptr(), group_id.0.get());
}
}
}
impl std::fmt::Debug for StreamStart {