forked from mirrors/gstreamer-rs
Fix compilation again now that GstRc::get_mut() requires &mut self again
This commit is contained in:
parent
5589d5221f
commit
b773c0b46a
2 changed files with 2 additions and 2 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue