diff --git a/gst-plugin-togglerecord/examples/gtk_recording.rs b/gst-plugin-togglerecord/examples/gtk_recording.rs index ff87f512..c77b4a51 100644 --- a/gst-plugin-togglerecord/examples/gtk_recording.rs +++ b/gst-plugin-togglerecord/examples/gtk_recording.rs @@ -301,8 +301,8 @@ fn create_ui(app: >k::Application) { }); let bus = pipeline.get_bus().unwrap(); - let app_weak = glib::SendWeakRef::from(app.downgrade()); - bus.add_watch(move |_, msg| { + let app_weak = app.downgrade(); + bus.add_watch_local(move |_, msg| { use gst::MessageView; let app = match app_weak.upgrade() {