See: https://issues.mediagoblin.org/ticket/5399 --- mediagoblin/media_types/video/transcoders.py 2015-12-20 11:25:11.000000000 -0500 +++ mediagoblin/media_types/video/transcoders.py 2016-01-20 00:21:47.159639000 -0500 @@ -32,5 +32,5 @@ import gi gi.require_version('Gst', '1.0') -from gi.repository import GObject, Gst +from gi.repository import GLib, Gst Gst.init(None) @@ -153,5 +153,5 @@ _log.info('Initializing VideoTranscoder...') self.progress_percentage = None - self.loop = GObject.MainLoop() + self.loop = GLib.MainLoop() def transcode(self, src, dst, **kwargs): @@ -370,9 +370,9 @@ # This kills the loop, mercifully - GObject.idle_add(self.__stop_mainloop) + GLib.idle_add(self.__stop_mainloop) def __stop_mainloop(self): ''' - Wrapper for GObject.MainLoop.quit() + Wrapper for GLib.MainLoop.quit() This wrapper makes us able to see if self.loop.quit has been called