diff --git a/gstreamer-pbutils/src/encoding_profile.rs b/gstreamer-pbutils/src/encoding_profile.rs index c88289d8e..b60e2ea86 100644 --- a/gstreamer-pbutils/src/encoding_profile.rs +++ b/gstreamer-pbutils/src/encoding_profile.rs @@ -467,7 +467,7 @@ impl<'a> EncodingContainerProfileBuilder<'a> { Ok(container_profile) } - pub fn add_profile>(mut self, profile: &P) -> Self { + pub fn add_profile>(self, profile: &P) -> Self { self.helper_profile.add_profile(profile).unwrap(); self }