Commit b773c0b4 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Fix compilation again now that GstRc::get_mut() requires &mut self again

parent 5589d522
......@@ -40,7 +40,7 @@ impl GstRc<CapsRef> {
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);
......
......@@ -125,7 +125,7 @@ fn handle_message(custom_data: &mut CustomData, msg: &gst::GstRc<gst::MessageRef
custom_data.playing = new_state == gst::State::Playing;
if custom_data.playing {
let query = gst::Query::new_seeking(gst::Format::Time);
let mut query = gst::Query::new_seeking(gst::Format::Time);
if custom_data.playbin.query(query.get_mut().unwrap()) {
match query.view() {
gst::QueryView::Seeking(seek) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment