mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-29 13:01:05 +00:00
gstreamer: Add bindings for Message::structure_mut()
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1215>
This commit is contained in:
parent
b54746cf62
commit
b708208408
1 changed files with 10 additions and 0 deletions
|
@ -68,6 +68,16 @@ impl MessageRef {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[doc(alias = "gst_message_writable_structure")]
|
||||||
|
#[inline]
|
||||||
|
pub fn structure_mut(&mut self) -> &mut StructureRef {
|
||||||
|
unsafe {
|
||||||
|
StructureRef::from_glib_borrow_mut(ffi::gst_message_writable_structure(
|
||||||
|
self.as_mut_ptr(),
|
||||||
|
))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[doc(alias = "gst_message_has_name")]
|
#[doc(alias = "gst_message_has_name")]
|
||||||
pub fn has_name(&self, name: &str) -> bool {
|
pub fn has_name(&self, name: &str) -> bool {
|
||||||
self.structure().map_or(false, |s| s.has_name(name))
|
self.structure().map_or(false, |s| s.has_name(name))
|
||||||
|
|
Loading…
Reference in a new issue