/
pygobject-3.40.1-no-GstInterfaces.patch
45 lines (41 loc) · 1.6 KB
/
pygobject-3.40.1-no-GstInterfaces.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
diff -uraN pygobject-3.40.1/pygtkcompat/pygtkcompat.py omv-pygobject-3.40.1/pygtkcompat/pygtkcompat.py
--- pygobject-3.40.1/pygtkcompat/pygtkcompat.py 2020-05-06 18:48:34.879111800 +0200
+++ omv-pygobject-3.40.1/pygtkcompat/pygtkcompat.py 2021-04-29 17:34:15.088601975 +0200
@@ -530,7 +530,7 @@
if _check_enabled("vte"):
return
- gi.require_version('Vte', '0.0')
+ gi.require_version('Vte', '2.91')
from gi.repository import Vte
_patch_module('vte', Vte)
@@ -570,22 +570,6 @@
if _check_enabled("gst"):
return
- gi.require_version('Gst', '0.10')
- from gi.repository import Gst
- _patch_module('gst', Gst)
- _install_enums(Gst)
-
- _patch(Gst, "registry_get_default", Gst.Registry.get_default)
- _patch(Gst, "element_register", Gst.Element.register)
- _patch(Gst, "element_factory_make", Gst.ElementFactory.make)
- _patch(Gst, "caps_new_any", Gst.Caps.new_any)
- _patch(Gst, "get_pygst_version", lambda: (0, 10, 19))
- _patch(Gst, "get_gst_version", lambda: (0, 10, 40))
-
- from gi.repository import GstInterfaces
- _patch_module('gst.interfaces', GstInterfaces)
- _install_enums(GstInterfaces)
-
from gi.repository import GstAudio
_patch_module('gst.audio', GstAudio)
_install_enums(GstAudio)
@@ -598,9 +582,6 @@
_patch_module('gst.base', GstBase)
_install_enums(GstBase)
- _patch(Gst, "BaseTransform", GstBase.BaseTransform)
- _patch(Gst, "BaseSink", GstBase.BaseSink)
-
from gi.repository import GstController
_patch_module('gst.controller', GstController)
_install_enums(GstController, dest=Gst)