gst/gstmodule.c (DL_EXPORT): Remove the atexit(gst_deinit).

Original commit message from CVS:
2007-09-11  Andy Wingo  <wingo@pobox.com>

* gst/gstmodule.c (DL_EXPORT): Remove the atexit(gst_deinit).
Atexit handlers are run after python has finalized (see Py_Exit in
pythonrun.c), but gst_deinit can potentially call back into python
e.g. for python-defined plugins. Not sure how other people are
avoiding this segfault, but I see it all the time on Gusty x86-64
with Flumotion.
This commit is contained in:
Andy Wingo 2007-09-11 11:49:50 +00:00
parent 3a6849d0a8
commit 705ffb4135
3 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,12 @@
2007-09-11 Andy Wingo <wingo@pobox.com>
* gst/gstmodule.c (DL_EXPORT): Remove the atexit(gst_deinit).
Atexit handlers are run after python has finalized (see Py_Exit in
pythonrun.c), but gst_deinit can potentially call back into python
e.g. for python-defined plugins. Not sure how other people are
avoiding this segfault, but I see it all the time on Gusty x86-64
with Flumotion.
2007-08-16 Stefan Kost <ensonic@users.sf.net>
* ChangeLog:

2
common

@ -1 +1 @@
Subproject commit b3fe2a25c1cd0f4b021795d0db7330aeb338da7c
Subproject commit 76752780462a3c4da712d56d54c45402144b3d0f

View file

@ -266,8 +266,6 @@ init_gst (void)
g_timeout_add_full (0, 100, python_do_pending_calls, NULL, NULL);
atexit(gst_deinit);
if (PyErr_Occurred ()) {
Py_FatalError ("can't initialize module gst");
}