mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 01:21:05 +00:00
gst: tags: remove Quark
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1531>
This commit is contained in:
parent
ebe3d72bae
commit
dcf6d333b6
1 changed files with 4 additions and 4 deletions
|
@ -6,6 +6,7 @@ use glib::{
|
||||||
prelude::*,
|
prelude::*,
|
||||||
translate::*,
|
translate::*,
|
||||||
value::{FromValue, SendValue, ToSendValue, Value},
|
value::{FromValue, SendValue, ToSendValue, Value},
|
||||||
|
GStr,
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::{ffi, Sample, TagError, TagMergeMode, TagScope};
|
use crate::{ffi, Sample, TagError, TagMergeMode, TagScope};
|
||||||
|
@ -533,8 +534,7 @@ impl TagListRef {
|
||||||
TagIter::new(self)
|
TagIter::new(self)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn iter_tag_generic(&self, tag_name: impl IntoGStr) -> GenericTagIter {
|
pub fn iter_tag_generic<'a>(&'a self, tag_name: &'a GStr) -> GenericTagIter<'a> {
|
||||||
let tag_name = glib::Quark::from_str(tag_name).as_str();
|
|
||||||
GenericTagIter::new(self, tag_name)
|
GenericTagIter::new(self, tag_name)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -746,13 +746,13 @@ where
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct GenericTagIter<'a> {
|
pub struct GenericTagIter<'a> {
|
||||||
taglist: &'a TagListRef,
|
taglist: &'a TagListRef,
|
||||||
name: &'static glib::GStr,
|
name: &'a GStr,
|
||||||
idx: usize,
|
idx: usize,
|
||||||
size: usize,
|
size: usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> GenericTagIter<'a> {
|
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!();
|
skip_assert_initialized!();
|
||||||
GenericTagIter {
|
GenericTagIter {
|
||||||
taglist,
|
taglist,
|
||||||
|
|
Loading…
Reference in a new issue