Ticket #5066: GstPbutils_import_workaround.patch

File GstPbutils_import_workaround.patch, 1.2 KB (added by anongoblin, 10 years ago)

Patch for warnings from msm-

  • mediagoblin/media_types/tools.py

    diff --git a/mediagoblin/media_types/tools.py b/mediagoblin/media_types/tools.py
    index 3bc56e2..95b7d23 100644
    a b def discover(src):  
    3535    # import, or an exception will be raised.
    3636    import gi
    3737    gi.require_version('Gst', '1.0')
    38     from gi.repository import GObject, Gst, GstPbutils, GLib
     38    from gi.repository import GObject, Gst, GLib
    3939    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
    4042
    4143    _log.info('Discovering {0}...'.format(src))
    4244    uri = 'file://{0}'.format(src)
  • mediagoblin/media_types/video/transcoders.py

    diff --git a/mediagoblin/media_types/video/transcoders.py b/mediagoblin/media_types/video/transcoders.py
    index 3c060fd..8a27eac 100644
    a b sys.argv = []  
    3131
    3232import gi
    3333gi.require_version('Gst', '1.0')
    34 from gi.repository import GObject, Gst, GstPbutils
     34from gi.repository import GObject, Gst
    3535Gst.init(None)
     36# init before import to work around https://bugzilla.gnome.org/show_bug.cgi?id=736260
     37from gi.repository import GstPbutils
    3638
    3739sys.argv = old_argv
    3840import struct