mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-29 04:51:09 +00:00
Add TagListRef::merge() and ::insert()
This commit is contained in:
parent
a4eea8734d
commit
0483d0881f
1 changed files with 8 additions and 0 deletions
|
@ -316,6 +316,14 @@ impl TagListRef {
|
||||||
pub fn to_string(&self) -> String {
|
pub fn to_string(&self) -> String {
|
||||||
unsafe { from_glib_full(ffi::gst_tag_list_to_string(self.as_ptr())) }
|
unsafe { from_glib_full(ffi::gst_tag_list_to_string(self.as_ptr())) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn insert(&mut self, other: &TagListRef, mode: TagMergeMode) {
|
||||||
|
unsafe { ffi::gst_tag_list_insert(self.as_mut_ptr(), other.as_ptr(), mode.to_glib()) }
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn merge(&self, other: &TagListRef, mode: TagMergeMode) -> TagList {
|
||||||
|
unsafe { from_glib_full(ffi::gst_tag_list_merge(self.as_ptr(), other.as_ptr(), mode.to_glib())) }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl fmt::Debug for TagListRef {
|
impl fmt::Debug for TagListRef {
|
||||||
|
|
Loading…
Reference in a new issue