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

This commit is contained in:
Sebastian Dröge 2017-10-11 15:32:03 +03:00
parent 5589d5221f
commit b773c0b46a
2 changed files with 2 additions and 2 deletions

View file

@ -40,7 +40,7 @@ impl GstRc<CapsRef> {
pub fn new_simple(name: &str, values: &[(&str, &ToValue)]) -> Self { pub fn new_simple(name: &str, values: &[(&str, &ToValue)]) -> Self {
assert_initialized_main_thread!(); assert_initialized_main_thread!();
let caps = Caps::new_empty(); let mut caps = Caps::new_empty();
let structure = Structure::new(name, values); let structure = Structure::new(name, values);
caps.get_mut().unwrap().append_structure(structure); caps.get_mut().unwrap().append_structure(structure);

View file

@ -125,7 +125,7 @@ fn handle_message(custom_data: &mut CustomData, msg: &gst::GstRc<gst::MessageRef
custom_data.playing = new_state == gst::State::Playing; custom_data.playing = new_state == gst::State::Playing;
if custom_data.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()) { if custom_data.playbin.query(query.get_mut().unwrap()) {
match query.view() { match query.view() {
gst::QueryView::Seeking(seek) => { gst::QueryView::Seeking(seek) => {