Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sdroege/gst-plugin-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2020-08-27 09:50:33 +0300
committerSebastian Dröge <sebastian@centricular.com>2020-08-27 09:50:33 +0300
commit87025d7a02d5ad83b4c5eb421ba8c49234e11a4f (patch)
tree7fc3a5263427b2b204585aa296d716721055c05d /utils/togglerecord/examples
parent0f895762352a80dd938a8ec46d5104765da815f8 (diff)
Use glib::timeout_add_local() instead of removed gtk::timeout_add()
Diffstat (limited to 'utils/togglerecord/examples')
-rw-r--r--utils/togglerecord/examples/gtk_recording.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/togglerecord/examples/gtk_recording.rs b/utils/togglerecord/examples/gtk_recording.rs
index 78107106..78ab9f45 100644
--- a/utils/togglerecord/examples/gtk_recording.rs
+++ b/utils/togglerecord/examples/gtk_recording.rs
@@ -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),