diff --git a/examples/src/bin/tagsetter.rs b/examples/src/bin/tagsetter.rs index 9e31f03fe..25c6ce06d 100644 --- a/examples/src/bin/tagsetter.rs +++ b/examples/src/bin/tagsetter.rs @@ -76,7 +76,8 @@ fn example_main() -> Result<(), Error> { // Set the "title" tag to "Special randomized white-noise". // The second parameter gst::TagMergeMode::Append tells the tagsetter to append this title // if there already is one. - tagsetter.add::(&"Special randomized white-noise", gst::TagMergeMode::Append); + tagsetter + .add_tag::(&"Special randomized white-noise", gst::TagMergeMode::Append); let bus = pipeline.bus().unwrap(); diff --git a/gstreamer/src/tag_setter.rs b/gstreamer/src/tag_setter.rs index 8e31d5f37..e98ea6a5f 100644 --- a/gstreamer/src/tag_setter.rs +++ b/gstreamer/src/tag_setter.rs @@ -6,11 +6,11 @@ use crate::{tags::*, TagMergeMode, TagSetter}; pub trait TagSetterExtManual: 'static { #[doc(alias = "gst_tag_setter_add_tag_value")] - fn add<'a, T: Tag<'a>>(&self, value: &T::TagType, mode: TagMergeMode); + fn add_tag<'a, T: Tag<'a>>(&self, value: &T::TagType, mode: TagMergeMode); } impl> TagSetterExtManual for O { - fn add<'a, T: Tag<'a>>(&self, value: &T::TagType, mode: TagMergeMode) { + fn add_tag<'a, T: Tag<'a>>(&self, value: &T::TagType, mode: TagMergeMode) { unsafe { let v = value.to_send_value();