forked from mirrors/gstreamer-rs
examples: gtkvideooverlay: use app.quit() to exit properly
We can't use gtk::main_quit() as the loop is handled by the GtkApplication.
This commit is contained in:
parent
88c4f70195
commit
c1c06868e9
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ fn create_ui(app: >k::Application) {
|
|||
};
|
||||
|
||||
match msg.view() {
|
||||
MessageView::Eos(..) => gtk::main_quit(),
|
||||
MessageView::Eos(..) => app.quit(),
|
||||
MessageView::Error(err) => {
|
||||
println!(
|
||||
"Error from {:?}: {} ({:?})",
|
||||
|
|
Loading…
Reference in a new issue