Fix player process not exiting after window close

This commit is contained in:
Rafostar
2020-10-15 17:54:28 +02:00
parent 57a8e6d933
commit fa07c4532c
3 changed files with 7 additions and 6 deletions

View File

@@ -468,6 +468,13 @@ class ClapperInterface extends Gtk.Grid
_onDestroy()
{
this.disconnect(this.destroySignal);
if(
this._player
&& this._player.state !== GstPlayer.PlayerState.STOPPED
)
this._player.stop();
this.controls.emit('destroy');
}
});