python: Do not call gst_init when it is already is_initialized
authorThibault Saunier <tsaunier@igalia.com>
Tue, 28 Jun 2022 15:02:37 +0000 (11:02 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 8 Jul 2022 14:37:14 +0000 (14:37 +0000)
commit37366ff2f4baf37306092fd8c844b7c0bfa36f08
tree418e85e0eb8536c23e981d3f0282ea18b4b5bb38
parent0513e5171659f6a393b38173e49138512bb9644c
python: Do not call gst_init when it is already is_initialized

GStreamer plugins written in python need to call `Gst.init` to ensure
that GStreamer is initialized so when loading a python plugin, we might
be recursively calling `gst_init` which is not a good idea.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/940

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2675>
subprojects/gst-python/gi/overrides/Gst.py