From 11468e2774c30a85be6b0a0e70a59ed40b3f0537 Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Wed, 4 Nov 2020 12:37:36 +0100 Subject: [PATCH] Add unexported by GI Gst.PlayFlags --- clapper_src/playerBase.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/clapper_src/playerBase.js b/clapper_src/playerBase.js index 8d7834ed..d2c97764 100644 --- a/clapper_src/playerBase.js +++ b/clapper_src/playerBase.js @@ -1,6 +1,23 @@ const { Gio, GLib, GObject, Gst, GstPlayer, Gtk } = imports.gi; const Debug = imports.clapper_src.debug; +/* PlayFlags are not exported through GI */ +Gst.PlayFlags = { + VIDEO: 1, + AUDIO: 2, + TEXT: 4, + VIS: 8, + SOFT_VOLUME: 16, + NATIVE_AUDIO: 32, + NATIVE_VIDEO: 64, + DOWNLOAD: 128, + BUFFERING: 256, + DEINTERLACE: 512, + SOFT_COLORBALANCE: 1024, + FORCE_FILTERS: 2048, + FORCE_SW_DECODERS: 4096, +}; + let { debug } = Debug; var PlayerBase = GObject.registerClass(