From 2cbabe288702349e4c65195a70df617961afa3bc Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Tue, 5 Jan 2021 23:42:23 +0100 Subject: [PATCH] Do not try to uninhibit when app is closing --- clapper_src/player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clapper_src/player.js b/clapper_src/player.js index a79825ab..42c1f5d1 100644 --- a/clapper_src/player.js +++ b/clapper_src/player.js @@ -369,7 +369,6 @@ class ClapperPlayer extends PlayerBase if(state !== GstPlayer.PlayerState.BUFFERING) { const root = player.widget.get_root(); - Misc.inhibitForState(state, root); if(this.quitOnStop) { if(state === GstPlayer.PlayerState.STOPPED) @@ -377,6 +376,7 @@ class ClapperPlayer extends PlayerBase return; } + Misc.inhibitForState(state, root); } const clapperWidget = player.widget.get_ancestor(Gtk.Grid);