aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Sturmfels <ben@sturm.com.au>2019-11-01 16:41:45 +1100
committerBen Sturmfels <ben@sturm.com.au>2019-11-01 16:41:45 +1100
commit48208c278c62781bd6d9acd9540e364550506162 (patch)
tree54b394b1c518338d643456eac5ce7e5d09f9e1d2
parente34916ee8bc3860c41eca5292a6d49a6dbdc8dea (diff)
downloadmediagoblin-48208c278c62781bd6d9acd9540e364550506162.tar.lz
mediagoblin-48208c278c62781bd6d9acd9540e364550506162.tar.xz
mediagoblin-48208c278c62781bd6d9acd9540e364550506162.zip
Prevent warning when importing GstPbutils.
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.
-rw-r--r--mediagoblin/media_types/video/transcoders.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mediagoblin/media_types/video/transcoders.py b/mediagoblin/media_types/video/transcoders.py
index d6aae7cf..b0350c76 100644
--- 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