[gnome-music/wip/mschraal/gst-import-workaround] gnome-music.in: Initialize gstreamer early



commit 4b9c81ccc76b647f605b495f21845fba0d8689b0
Author: Marinus Schraal <mschraal gnome org>
Date:   Sun Feb 18 17:54:44 2018 +0100

    gnome-music.in: Initialize gstreamer early
    
    GStreamer should be initialized before GstPbutils is imported.
    This fixes an error message when using the gst-python bindings.
    
    Related: pygobject#83

 gnome-music.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gnome-music.in b/gnome-music.in
index debe77c..a62d35f 100644
--- a/gnome-music.in
+++ b/gnome-music.in
@@ -40,7 +40,10 @@ import gi
 
 gi.require_version('Gtk', '3.0')
 gi.require_version('GIRepository', '2.0')
-from gi.repository import GIRepository, Gio, Gtk
+gi.require_version('Gst', '1.0')
+from gi.repository import GIRepository, Gio, Gtk, Gst
+
+Gst.init(None)
 
 import gnomemusic
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]