[pitivi] check: Initialize GES



commit 525193b8e36fd1a56750658d8f8c61eb1d50f587
Author: Nicolas Dufresne <nicolas dufresne collabora co uk>
Date:   Sun Sep 9 17:12:56 2012 -0400

    check: Initialize GES

 pitivi/check.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/check.py b/pitivi/check.py
index ad8dec1..edd66b0 100644
--- a/pitivi/check.py
+++ b/pitivi/check.py
@@ -26,6 +26,7 @@ Runtime checks.
 from gi.repository import Gdk
 from gi.repository import Gtk
 from gi.repository import Gst
+from gi.repository import GES
 
 from gettext import gettext as _
 
@@ -194,4 +195,9 @@ def initial_checks():
     # Test for gst ugly
     #if not Gst.Registry.get().find_plugin("x264"):
     #    soft_deps["GStreamer ugly plugins"] = _('Additional good quality GStreamer plugins whose license is not LGPL or with licensing issues')
+
+    if not GES.init():
+        return (_("Could not initialize GStreamer Editing Services"),
+                _("Make sure you have the gst-editing-services installed."))
+
     return None



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