Add custom debug script with Gst version check

This commit is contained in:
Rafostar
2020-09-03 10:43:07 +02:00
parent 176ddf1cc2
commit 7d2b1f1118
3 changed files with 44 additions and 3 deletions

View File

@@ -1,10 +1,13 @@
const { Gdk, GLib, GObject, Gtk } = imports.gi;
const Debug = imports.clapper_src.debug;
const { Interface } = imports.clapper_src.interface;
const { Player } = imports.clapper_src.player;
const { Window } = imports.clapper_src.window;
const APP_NAME = 'Clapper';
let { debug } = Debug;
var App = GObject.registerClass({
Signals: {
'ready': {
@@ -306,11 +309,11 @@ var App = GObject.registerClass({
_onPlayerWarning(self, error)
{
log(error.message);
debug(error.message, 'LEVEL_WARNING');
}
_onPlayerError(self, error)
{
logError(error);
debug(error);
}
});