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:
Guillaume Desmottes 2021-05-22 17:36:31 +02:00
parent 88c4f70195
commit c1c06868e9

View file

@ -219,7 +219,7 @@ fn create_ui(app: &gtk::Application) {
}; };
match msg.view() { match msg.view() {
MessageView::Eos(..) => gtk::main_quit(), MessageView::Eos(..) => app.quit(),
MessageView::Error(err) => { MessageView::Error(err) => {
println!( println!(
"Error from {:?}: {} ({:?})", "Error from {:?}: {} ({:?})",