diff --git a/gstreamer-app/src/app_sink.rs b/gstreamer-app/src/app_sink.rs index a75ddc861..d566466c1 100644 --- a/gstreamer-app/src/app_sink.rs +++ b/gstreamer-app/src/app_sink.rs @@ -67,7 +67,7 @@ pub struct AppSinkCallbacksBuilder { } impl AppSinkCallbacksBuilder { - pub fn eos(self, eos: F) -> Self { + pub fn eos(self, eos: F) -> Self { Self { eos: Some(RefCell::new(Box::new(eos))), ..self @@ -75,7 +75,7 @@ impl AppSinkCallbacksBuilder { } pub fn new_preroll< - F: Fn(&AppSink) -> Result + Send + 'static, + F: FnMut(&AppSink) -> Result + Send + 'static, >( self, new_preroll: F, @@ -87,7 +87,7 @@ impl AppSinkCallbacksBuilder { } pub fn new_sample< - F: Fn(&AppSink) -> Result + Send + 'static, + F: FnMut(&AppSink) -> Result + Send + 'static, >( self, new_sample: F,