From f9c8a3ce33eef3ca1c838191a27d7df930a60be1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Fri, 22 Jan 2021 11:46:50 +0100 Subject: [PATCH] Do not try to dispose non-existing window --- src/player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player.js b/src/player.js index 2513d437..bad6f1fd 100644 --- a/src/player.js +++ b/src/player.js @@ -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;