forked from mirrors/gstreamer-rs
gstreamer: meta: Give returned tags array an arbitrary lifetime
The tags are statically stored. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1342>
This commit is contained in:
parent
437ec48ae1
commit
7d77858bc8
1 changed files with 2 additions and 2 deletions
|
@ -204,7 +204,7 @@ impl<'a, T> MetaRef<'a, T> {
|
|||
|
||||
#[inline]
|
||||
#[doc(alias = "gst_meta_api_type_get_tags")]
|
||||
pub fn tags(&self) -> &[glib::GStringPtr] {
|
||||
pub fn tags<'b>(&self) -> &'b [glib::GStringPtr] {
|
||||
unsafe {
|
||||
glib::StrV::from_glib_borrow(ffi::gst_meta_api_type_get_tags(self.api().into_glib()))
|
||||
}
|
||||
|
@ -304,7 +304,7 @@ impl<'a, T, U> MetaRefMut<'a, T, U> {
|
|||
|
||||
#[inline]
|
||||
#[doc(alias = "gst_meta_api_type_get_tags")]
|
||||
pub fn tags(&self) -> &[glib::GStringPtr] {
|
||||
pub fn tags<'b>(&self) -> &'b [glib::GStringPtr] {
|
||||
unsafe {
|
||||
glib::StrV::from_glib_borrow(ffi::gst_meta_api_type_get_tags(self.api().into_glib()))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue