Commit 37c3d2d8 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵
Browse files

Update for glib::source_remove() removal

parent d7fe6107
Pipeline #421389 waiting for manual action with stages
in 30 minutes and 23 seconds
......@@ -153,7 +153,7 @@ fn create_ui(app: &gtk::Application) {
}
if let Some(timeout_id) = timeout_id.borrow_mut().take() {
glib::source_remove(timeout_id);
timeout_id.remove();
}
});
}
......
......@@ -258,7 +258,7 @@ fn create_ui(app: &gtk::Application) {
}
if let Some(timeout_id) = timeout_id.borrow_mut().take() {
glib::source_remove(timeout_id);
timeout_id.remove();
}
});
}
......
......@@ -124,7 +124,7 @@ fn example_main() {
.expect("Unable to set the pipeline to the `Null` state");
bus.remove_watch().unwrap();
glib::source_remove(timeout_id);
timeout_id.remove();
}
fn main() {
......
......@@ -141,7 +141,7 @@ fn main_loop() -> Result<(), Error> {
// incoming connections from clients.
main_loop.run();
glib::source_remove(id);
id.remove();
Ok(())
}
......
......@@ -73,7 +73,7 @@ fn main_loop() -> Result<(), Error> {
// our quality content to connecting clients.
main_loop.run();
glib::source_remove(id);
id.remove();
Ok(())
}
......
......@@ -77,7 +77,7 @@ fn main_loop() -> Result<(), Error> {
// our quality content to connecting clients.
main_loop.run();
glib::source_remove(id);
id.remove();
Ok(())
}
......
......@@ -30,7 +30,7 @@ mod tutorial5 {
impl Drop for AppWindow {
fn drop(&mut self) {
if let Some(source_id) = self.timeout_id.take() {
glib::source_remove(source_id);
source_id.remove();
}
}
}
......
......@@ -207,7 +207,7 @@ fn main() {
let mut data = data.lock().unwrap();
if let Some(source) = data.source_id.take() {
println!("stop feeding");
glib::source::source_remove(source);
source.remove();
}
})
.build(),
......
......@@ -180,7 +180,7 @@ fn tutorial_main() -> Result<(), Error> {
pipeline.set_state(gst::State::Null)?;
bus.remove_watch()?;
glib::source_remove(timeout_id);
timeout_id.remove();
Ok(())
}
......
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