mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
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:
@@ -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'
|
||||
);
|
||||
}
|
||||
|
@@ -18,8 +18,6 @@ var Widget = GObject.registerClass({
|
||||
{
|
||||
_init()
|
||||
{
|
||||
Debug.gstVersionCheck();
|
||||
|
||||
super._init();
|
||||
|
||||
/* load CSS here to allow using this class
|
||||
|
Reference in New Issue
Block a user