mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 01:21:05 +00:00
Update for glib::source_remove() removal
This commit is contained in:
parent
d7fe610767
commit
37c3d2d8e0
9 changed files with 9 additions and 9 deletions
|
@ -153,7 +153,7 @@ fn create_ui(app: >k::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: >k::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(())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue