mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-06-06 16:29:24 +00:00
Use glib::timeout_add_local() instead of removed gtk::timeout_add()
This commit is contained in:
parent
0f89576235
commit
87025d7a02
|
@ -126,7 +126,7 @@ fn create_ui(app: >k::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: >k::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),
|
||||
|
|
Loading…
Reference in a new issue