diff --git a/gstreamer/src/caps.rs b/gstreamer/src/caps.rs index b5b4724f6..aca3defde 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 caps = Caps::new_empty(); + let mut caps = Caps::new_empty(); let structure = Structure::new(name, values); caps.get_mut().unwrap().append_structure(structure); diff --git a/tutorials/src/bin/basic-tutorial-4.rs b/tutorials/src/bin/basic-tutorial-4.rs index eeafcd93b..228a04766 100644 --- a/tutorials/src/bin/basic-tutorial-4.rs +++ b/tutorials/src/bin/basic-tutorial-4.rs @@ -125,7 +125,7 @@ fn handle_message(custom_data: &mut CustomData, msg: &gst::GstRc {