From c11afb9995f452cb702ddef128f7e652f399bdbc Mon Sep 17 00:00:00 2001 From: "Juan A. Diaz" Date: Sat, 26 Sep 2015 17:20:56 -0300 Subject: Gst must be initialized before call any method. --- voctogui/voctogui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'voctogui/voctogui.py') diff --git a/voctogui/voctogui.py b/voctogui/voctogui.py index 1ca6579..f867971 100755 --- a/voctogui/voctogui.py +++ b/voctogui/voctogui.py @@ -9,6 +9,7 @@ from gi.repository import Gtk, Gdk, Gst, GObject, GdkX11, GstVideo minGst = (1, 5) minPy = (3, 0) +Gst.init([]) if Gst.version() < minGst: raise Exception("GStreamer version", Gst.version(), 'is too old, at least', minGst, 'is required') @@ -20,7 +21,6 @@ if sys.version_info < minPy: GObject.threads_init() Gdk.init([]) Gtk.init([]) -Gst.init([]) # import local classes from lib.args import Args -- cgit v1.2.3