diff --git a/gstreamer/src/caps.rs b/gstreamer/src/caps.rs index aca3defde..b5b4724f6 100644 --- a/gstreamer/src/caps.rs +++ b/gstreamer/src/caps.rs @@ -40,7 +40,7 @@ impl GstRc { pub fn new_simple(name: &str, values: &[(&str, &ToValue)]) -> Self { assert_initialized_main_thread!(); - let mut caps = Caps::new_empty(); + let caps = Caps::new_empty(); let structure = Structure::new(name, values); caps.get_mut().unwrap().append_structure(structure);