mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 16:31:58 +02:00
Fix player process not exiting after window close
This commit is contained in:
@@ -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');
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user