Work around pbutils import warning bug (5066)
This commit is contained in:
parent
ca3dd10e2b
commit
355d062dd4
@ -35,8 +35,10 @@ def discover(src):
|
||||
# import, or an exception will be raised.
|
||||
import gi
|
||||
gi.require_version('Gst', '1.0')
|
||||
from gi.repository import GObject, Gst, GstPbutils, GLib
|
||||
from gi.repository import GObject, Gst, GLib
|
||||
Gst.init(None)
|
||||
# init before import to work around https://bugzilla.gnome.org/show_bug.cgi?id=736260
|
||||
from gi.repository import GstPbutils
|
||||
|
||||
_log.info('Discovering {0}...'.format(src))
|
||||
uri = 'file://{0}'.format(src)
|
||||
|
@ -31,8 +31,10 @@ sys.argv = []
|
||||
|
||||
import gi
|
||||
gi.require_version('Gst', '1.0')
|
||||
from gi.repository import GObject, Gst, GstPbutils
|
||||
from gi.repository import GObject, Gst
|
||||
Gst.init(None)
|
||||
# init before import to work around https://bugzilla.gnome.org/show_bug.cgi?id=736260
|
||||
from gi.repository import GstPbutils
|
||||
|
||||
sys.argv = old_argv
|
||||
import struct
|
||||
|
Loading…
x
Reference in New Issue
Block a user