Port app to the new GstClapper API

This commit is contained in:
Rafał Dzięgiel
2021-01-27 22:07:17 +01:00
parent 08f86cf0cc
commit bee1889376
6 changed files with 40 additions and 40 deletions

View File

@@ -1,4 +1,4 @@
const { Gio, GstAudio, GstPlayer, Gdk, Gtk } = imports.gi;
const { Gio, GstAudio, GstClapper, Gdk, Gtk } = imports.gi;
const Debug = imports.src.debug;
const { debug } = Debug;
@@ -52,7 +52,7 @@ function inhibitForState(state, window)
{
let isInhibited = false;
if(state === GstPlayer.PlayerState.PLAYING) {
if(state === GstClapper.ClapperState.PLAYING) {
if(inhibitCookie)
return;