Remove gstVersionCheck

Leftover from GTK3 version of the app. Since "gtk4glsink" is not available in any GStreamer release yet, no point in checking the version.
This commit is contained in:
Rafostar
2020-12-27 10:03:04 +01:00
parent 117a372189
commit b85edbbe8f
2 changed files with 1 additions and 18 deletions

View File

@@ -1,5 +1,4 @@
const { GLib, Gst } = imports.gi;
const REQ_GST_VERSION_MINOR = 18;
const { GLib } = imports.gi;
function debug(msg, levelName)
{
@@ -15,17 +14,3 @@ function debug(msg, levelName)
SYSLOG_IDENTIFIER: 'clapper'
});
}
function gstVersionCheck()
{
if(Gst.VERSION_MINOR >= REQ_GST_VERSION_MINOR)
return;
debug(
'Clapper was designed to' +
` work with GStreamer 1.${REQ_GST_VERSION_MINOR} or later.` +
` Your version is ${Gst.VERSION_MAJOR}.${Gst.VERSION_MINOR}.` +
' Please update GStreamer or expect some things to be broken.',
'LEVEL_WARNING'
);
}

View File

@@ -18,8 +18,6 @@ var Widget = GObject.registerClass({
{
_init()
{
Debug.gstVersionCheck();
super._init();
/* load CSS here to allow using this class