gst-python: overrides: provide default to Gst.init()

Allows using Gst.init() as without the overrides, can be convenient.

Fixes: https://gitlab.freedesktop.org/gstreamer/gst-python/-/issues/51
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4692>
This commit is contained in:
Mathieu Duponchelle 2023-05-23 17:55:11 +02:00 committed by GStreamer Marge Bot
parent e6d512a3b5
commit 2b4dca84dd

View file

@ -730,7 +730,7 @@ def deinit_pygst():
setattr(cname_class[1], mname, fake_method)
real_init = Gst.init
def init(argv):
def init(argv=None):
init_pygst()
if Gst.is_initialized():