diff --git a/utils/fallbackswitch/examples/gtk_fallbackswitch.rs b/utils/fallbackswitch/examples/gtk_fallbackswitch.rs index bb839a3a8..c066729a1 100644 --- a/utils/fallbackswitch/examples/gtk_fallbackswitch.rs +++ b/utils/fallbackswitch/examples/gtk_fallbackswitch.rs @@ -126,7 +126,7 @@ fn create_ui(app: >k::Application) { app.add_window(&window); let video_sink_weak = video_sink.downgrade(); - let timeout_id = glib::timeout_add_local(100, move || { + let timeout_id = glib::timeout_add_local(std::time::Duration::from_millis(100), move || { let video_sink = match video_sink_weak.upgrade() { Some(video_sink) => video_sink, None => return glib::Continue(true), diff --git a/utils/togglerecord/examples/gtk_recording.rs b/utils/togglerecord/examples/gtk_recording.rs index 78ab9f451..6e68e17b0 100644 --- a/utils/togglerecord/examples/gtk_recording.rs +++ b/utils/togglerecord/examples/gtk_recording.rs @@ -232,7 +232,7 @@ fn create_ui(app: >k::Application) { let video_sink_weak = video_sink.downgrade(); let togglerecord_weak = togglerecord.downgrade(); - let timeout_id = glib::timeout_add_local(100, move || { + let timeout_id = glib::timeout_add_local(std::time::Duration::from_millis(100), move || { let video_sink = match video_sink_weak.upgrade() { Some(video_sink) => video_sink, None => return glib::Continue(true),