forked from mirrors/gstreamer-rs
examples: gtksink: 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
1b1a4aa30b
commit
87fb66f283
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ fn create_ui(app: >k::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 {:?}: {} ({:?})",
|
||||||
|
|
Loading…
Reference in a new issue