gst1: Don't check Gst.is_initialized before calling Gst.init

As of gst-python 1.5.2, Gst.is_initialized throws a NotInitialized
exception if run before Gst.init. Gst.init should be a noop if run again
after the first call, so this should be safe.

This fixes #1432.
This commit is contained in:
Trygve Aaberge 2016-02-08 00:24:38 +01:00
parent 6cbfe86677
commit fefb6aa5a2

View File

@ -22,7 +22,7 @@ except ImportError:
"""))
raise
else:
Gst.is_initialized() or Gst.init([])
Gst.init([])
REQUIRED_GST_VERSION = (1, 2, 3)