mirror of
https://github.com/Rafostar/clapper.git
synced 2025-12-24 22:19:17 +01:00
Do not try to dispose non-existing window
This commit is contained in:
@@ -391,7 +391,7 @@ class ClapperPlayer extends PlayerBase
|
||||
const root = player.widget.get_root();
|
||||
|
||||
if(this.quitOnStop) {
|
||||
if(state === GstPlayer.PlayerState.STOPPED)
|
||||
if(root && state === GstPlayer.PlayerState.STOPPED)
|
||||
root.run_dispose();
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user