meta: Updated for GstMetaTransformCopy::new

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2508>
This commit is contained in:
Olivier Crête 2025-08-20 08:35:35 -04:00 committed by Sebastian Dröge
parent f953914238
commit 020efadd1f
5 changed files with 11 additions and 16 deletions

View file

@ -644,7 +644,7 @@ impl Synthesizer {
buffer.foreach_meta(|meta| {
if meta.tags().is_empty() {
if let Err(err) =
meta.transform(outbuf_mut, &gst::meta::MetaTransformCopy::new(false, ..))
meta.transform(outbuf_mut, &gst::meta::MetaTransformCopy::new(..))
{
gst::trace!(CAT, imp = self, "Could not copy meta {}: {err}", meta.api());
}
@ -701,10 +701,9 @@ impl Synthesizer {
for buffer in list.iter() {
buffer.foreach_meta(|meta| {
if meta.tags().is_empty() {
if let Err(err) = meta.transform(
outbuf_mut,
&gst::meta::MetaTransformCopy::new(false, ..),
) {
if let Err(err) =
meta.transform(outbuf_mut, &gst::meta::MetaTransformCopy::new(..))
{
gst::trace!(
CAT,
imp = self,

View file

@ -298,10 +298,7 @@ impl OriginalBufferRestore {
}
}
let _ = meta.transform(
outbuf.make_mut(),
&gst::meta::MetaTransformCopy::new(false, ..),
);
let _ = meta.transform(outbuf.make_mut(), &gst::meta::MetaTransformCopy::new(..));
}
if let Some(event) = state.sinkpad_segment.take() {

View file

@ -366,7 +366,7 @@ impl Polly {
buffer.foreach_meta(|meta| {
if meta.tags().is_empty() {
if let Err(err) =
meta.transform(outbuf_mut, &gst::meta::MetaTransformCopy::new(false, ..))
meta.transform(outbuf_mut, &gst::meta::MetaTransformCopy::new(..))
{
gst::trace!(CAT, imp = self, "Could not copy meta {}: {err}", meta.api());
}
@ -421,10 +421,9 @@ impl Polly {
for buffer in list.iter() {
buffer.foreach_meta(|meta| {
if meta.tags().is_empty() {
if let Err(err) = meta.transform(
outbuf_mut,
&gst::meta::MetaTransformCopy::new(false, ..),
) {
if let Err(err) =
meta.transform(outbuf_mut, &gst::meta::MetaTransformCopy::new(..))
{
gst::trace!(
CAT,
imp = self,

View file

@ -978,7 +978,7 @@ impl RtpBaseDepay2 {
gst::trace!(CAT, imp = self, "Copying meta {}", meta.api());
if let Err(err) = meta.transform(out_buf, &gst::meta::MetaTransformCopy::new(false, ..)) {
if let Err(err) = meta.transform(out_buf, &gst::meta::MetaTransformCopy::new(..)) {
gst::trace!(CAT, imp = self, "Could not copy meta {}: {err}", meta.api());
}
}

View file

@ -1415,7 +1415,7 @@ impl RtpBasePay2 {
gst::trace!(CAT, imp = self, "Copying meta {}", meta.api());
if let Err(err) = meta.transform(out_buf, &gst::meta::MetaTransformCopy::new(false, ..)) {
if let Err(err) = meta.transform(out_buf, &gst::meta::MetaTransformCopy::new(..)) {
gst::trace!(CAT, imp = self, "Could not copy meta {}: {err}", meta.api());
}
}