Gst.init() has to be called before GstPbutils is imported
authorThibault Saunier <tsaunier@igalia.com>
Wed, 30 Jan 2019 18:45:21 +0000 (15:45 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Wed, 30 Jan 2019 18:46:35 +0000 (15:46 -0300)
commit96ecb224683f4a01217971308149e5a36f20895e
tree7c9eccc764a349cea032669ce9120f94226a2b50
parent8e42b632016ca0eb237721a002de23373cec04ca
Gst.init() has to be called before GstPbutils is imported

This makes sure that we do not try to use GstPbutils before Gst is init
and in case GstPbutils is imported while Gst is not imported, use the
`GstPbutils.pb_utils_init()` function to have the oportunity to
initialize the overrides.

Not that we also introduce a `GstPbutils.init()` variant because
`GstPbutils.pb_utils_init()` is an ugly name.
gi/overrides/Gst.py
gi/overrides/GstPbutils.py