projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e34916e
)
Prevent warning when importing GstPbutils.
author
Ben Sturmfels
<ben@sturm.com.au>
Fri, 1 Nov 2019 05:41:45 +0000
(16:41 +1100)
committer
Ben Sturmfels
<ben@sturm.com.au>
Fri, 1 Nov 2019 05:41:45 +0000
(16:41 +1100)
Warning was:
PyGIWarning: GstPbutils was imported without specifying a version first. Use gi.require_version('GstPbutils', '1.0') before import to ensure that the right version gets loaded.
mediagoblin/media_types/video/transcoders.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/media_types/video/transcoders.py
b/mediagoblin/media_types/video/transcoders.py
index d6aae7cf2bd284b45adff9e4b527fcc19022b0b6..b0350c76beb2773844cb962ad8410e1fcbca1223 100644
(file)
--- a/
mediagoblin/media_types/video/transcoders.py
+++ b/
mediagoblin/media_types/video/transcoders.py
@@
-36,6
+36,7
@@
gi.require_version('Gst', '1.0')
from gi.repository import GLib, Gst
Gst.init(None)
# init before import to work around https://bugzilla.gnome.org/show_bug.cgi?id=736260
+gi.require_version('GstPbutils', '1.0')
from gi.repository import GstPbutils
sys.argv = old_argv