diff --git a/mediagoblin/media_types/tools.py b/mediagoblin/media_types/tools.py
index 3bc56e2..95b7d23 100644
a
|
b
|
def discover(src):
|
35 | 35 | # import, or an exception will be raised. |
36 | 36 | import gi |
37 | 37 | gi.require_version('Gst', '1.0') |
38 | | from gi.repository import GObject, Gst, GstPbutils, GLib |
| 38 | from gi.repository import GObject, Gst, GLib |
39 | 39 | Gst.init(None) |
| 40 | # init before import to work around https://bugzilla.gnome.org/show_bug.cgi?id=736260 |
| 41 | from gi.repository import GstPbutils |
40 | 42 | |
41 | 43 | _log.info('Discovering {0}...'.format(src)) |
42 | 44 | uri = 'file://{0}'.format(src) |
diff --git a/mediagoblin/media_types/video/transcoders.py b/mediagoblin/media_types/video/transcoders.py
index 3c060fd..8a27eac 100644
a
|
b
|
sys.argv = []
|
31 | 31 | |
32 | 32 | import gi |
33 | 33 | gi.require_version('Gst', '1.0') |
34 | | from gi.repository import GObject, Gst, GstPbutils |
| 34 | from gi.repository import GObject, Gst |
35 | 35 | Gst.init(None) |
| 36 | # init before import to work around https://bugzilla.gnome.org/show_bug.cgi?id=736260 |
| 37 | from gi.repository import GstPbutils |
36 | 38 | |
37 | 39 | sys.argv = old_argv |
38 | 40 | import struct |