Ticket #5399: patch-glib-not-gobject

File patch-glib-not-gobject, 989 bytes (added by mi, 9 years ago)

Update the patch to apply to 0.9.0 release. (And, yes, can just attribute to `mi'. Thanks!)

Line 
1See:
2 https://issues.mediagoblin.org/ticket/5399
3
4--- mediagoblin/media_types/video/transcoders.py 2015-12-20 11:25:11.000000000 -0500
5+++ mediagoblin/media_types/video/transcoders.py 2016-01-20 00:21:47.159639000 -0500
6@@ -32,5 +32,5 @@
7 import gi
8 gi.require_version('Gst', '1.0')
9-from gi.repository import GObject, Gst
10+from gi.repository import GLib, Gst
11 Gst.init(None)
12
13@@ -153,5 +153,5 @@
14 _log.info('Initializing VideoTranscoder...')
15 self.progress_percentage = None
16- self.loop = GObject.MainLoop()
17+ self.loop = GLib.MainLoop()
18
19 def transcode(self, src, dst, **kwargs):
20@@ -370,9 +370,9 @@
21
22 # This kills the loop, mercifully
23- GObject.idle_add(self.__stop_mainloop)
24+ GLib.idle_add(self.__stop_mainloop)
25
26 def __stop_mainloop(self):
27 '''
28- Wrapper for GObject.MainLoop.quit()
29+ Wrapper for GLib.MainLoop.quit()
30
31 This wrapper makes us able to see if self.loop.quit has been called