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:
parent
6cbfe86677
commit
fefb6aa5a2
@ -22,7 +22,7 @@ except ImportError:
|
||||
"""))
|
||||
raise
|
||||
else:
|
||||
Gst.is_initialized() or Gst.init([])
|
||||
Gst.init([])
|
||||
|
||||
|
||||
REQUIRED_GST_VERSION = (1, 2, 3)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user