Ignore state change signals during app exit

This commit is contained in:
Rafostar
2020-11-09 21:45:59 +01:00
parent 314b66b7fd
commit 0c307bc606

View File

@@ -309,10 +309,14 @@ class ClapperPlayer extends PlayerBase
{
this.state = state;
if(this.quitOnStop && state === GstPlayer.PlayerState.STOPPED) {
if(this.quitOnStop) {
if(state === GstPlayer.PlayerState.STOPPED) {
let root = player.widget.get_root();
if(root)
root.run_dispose();
}
return root.run_dispose();
return;
}
let clapperWidget = player.widget.get_ancestor(Gtk.Grid);