python: More functions can be called before gst_init()
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 30 May 2023 15:18:39 +0000 (20:48 +0530)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 2 Jun 2023 23:42:41 +0000 (23:42 +0000)
commit408c2d4a3e61a4842fc0b7d14ca7e1014712bc29
treea5410d34e505969d50f35ca0d9c8c32326ad10e7
parent796fc2a65f0228b5e8c0a714049a7053bcc245ad
python: More functions can be called before gst_init()

Configuration of our debugging system is possible before init, and in
fact is necessary too, otherwise the settings won't apply to logging
that happens during init.

For instance, since you cannot register a log function before you call
init in python, there is no way for you to log errors during init to
whatever logging service your app uses.

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