Commit 87025d7a authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Use glib::timeout_add_local() instead of removed gtk::timeout_add()

parent 0f895762
Pipeline #195678 failed with stages
in 27 minutes and 3 seconds
......@@ -126,7 +126,7 @@ fn create_ui(app: &gtk::Application) {
app.add_window(&window);
let video_sink_weak = video_sink.downgrade();
let timeout_id = gtk::timeout_add(100, move || {
let timeout_id = glib::timeout_add_local(100, move || {
let video_sink = match video_sink_weak.upgrade() {
Some(video_sink) => video_sink,
None => return glib::Continue(true),
......
......@@ -232,7 +232,7 @@ fn create_ui(app: &gtk::Application) {
let video_sink_weak = video_sink.downgrade();
let togglerecord_weak = togglerecord.downgrade();
let timeout_id = gtk::timeout_add(100, move || {
let timeout_id = glib::timeout_add_local(100, move || {
let video_sink = match video_sink_weak.upgrade() {
Some(video_sink) => video_sink,
None => return glib::Continue(true),
......
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