From dcf6d333b631cb07e91b5d7c9524caefd238fc41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Laignel?= Date: Tue, 12 Nov 2024 18:54:25 +0100 Subject: [PATCH] gst: tags: remove Quark Part-of: --- gstreamer/src/tags.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gstreamer/src/tags.rs b/gstreamer/src/tags.rs index a53347dd0..33df21941 100644 --- a/gstreamer/src/tags.rs +++ b/gstreamer/src/tags.rs @@ -6,6 +6,7 @@ use glib::{ prelude::*, translate::*, value::{FromValue, SendValue, ToSendValue, Value}, + GStr, }; use crate::{ffi, Sample, TagError, TagMergeMode, TagScope}; @@ -533,8 +534,7 @@ impl TagListRef { TagIter::new(self) } - pub fn iter_tag_generic(&self, tag_name: impl IntoGStr) -> GenericTagIter { - let tag_name = glib::Quark::from_str(tag_name).as_str(); + pub fn iter_tag_generic<'a>(&'a self, tag_name: &'a GStr) -> GenericTagIter<'a> { GenericTagIter::new(self, tag_name) } @@ -746,13 +746,13 @@ where #[derive(Debug)] pub struct GenericTagIter<'a> { taglist: &'a TagListRef, - name: &'static glib::GStr, + name: &'a GStr, idx: usize, size: usize, } impl<'a> GenericTagIter<'a> { - fn new(taglist: &'a TagListRef, name: &'static glib::GStr) -> GenericTagIter<'a> { + fn new(taglist: &'a TagListRef, name: &'a GStr) -> GenericTagIter<'a> { skip_assert_initialized!(); GenericTagIter { taglist,