mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
api: Introduce custom gstreamer init function
Initializes GStreamer library and tweaks some of its defaults to our liking. This also allows usage of GstClapper API alone without importing GStreamer on the implementation side. It changes preferred hardware acceleration order (depending on plugins versions) into: v4l2sl -> nv -> va -> vaapi -> v4l2
This commit is contained in:
@@ -2,9 +2,9 @@ imports.gi.versions.Gdk = '4.0';
|
||||
imports.gi.versions.Gtk = '4.0';
|
||||
imports.gi.versions.Soup = '2.4';
|
||||
|
||||
const { Gst, Gtk, Adw } = imports.gi;
|
||||
const { GstClapper, Gtk, Adw } = imports.gi;
|
||||
|
||||
Gst.init(null);
|
||||
GstClapper.Clapper.gst_init(null);
|
||||
Gtk.init();
|
||||
Adw.init();
|
||||
|
||||
|
Reference in New Issue
Block a user