Do not try to dispose non-existing window

This commit is contained in:
Rafał Dzięgiel
2021-01-22 11:46:50 +01:00
parent 20f03423f3
commit f9c8a3ce33

View File

@@ -391,7 +391,7 @@ class ClapperPlayer extends PlayerBase
const root = player.widget.get_root(); const root = player.widget.get_root();
if(this.quitOnStop) { if(this.quitOnStop) {
if(state === GstPlayer.PlayerState.STOPPED) if(root && state === GstPlayer.PlayerState.STOPPED)
root.run_dispose(); root.run_dispose();
return; return;