mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-02 14:12:20 +00:00
togglerecord: Use Bus::add_watch_local() for simplification
This commit is contained in:
parent
3af5552e10
commit
7e25b4fd84
1 changed files with 2 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue