gst/gstmodule.c (init_gst): Reset LC_NUMERIC, since it might change in gst_init_check. Fixes 100% CPU usage in flumot...

Original commit message from CVS:
* gst/gstmodule.c (init_gst): Reset LC_NUMERIC, since it might
change in gst_init_check. Fixes 100% CPU usage in flumotion
when using a non C locale.
This commit is contained in:
Johan Dahlin 2004-11-15 11:51:50 +00:00
parent 115c88be9d
commit 195af7df00
2 changed files with 12 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2004-11-15 Johan Dahlin <johan@gnome.org>
* gst/gstmodule.c (init_gst): Reset LC_NUMERIC, since it might
change in gst_init_check. Fixes 100% CPU usage in flumotion
when using a non C locale.
2004-11-11 Thomas Vander Stichele <thomas at apestaart dot org>
* pkgconfig/gst-python-uninstalled.pc.in:

View file

@ -24,6 +24,8 @@
#include "config.h"
#endif
#include <locale.h>
/* include this first, before NO_IMPORT_PYGOBJECT is defined */
#include <pygobject.h>
#include <gst/gst.h>
@ -89,7 +91,11 @@ init_gst (void)
g_free (argv);
}
PyErr_SetString (PyExc_RuntimeError, "can't initialize module gst");
setlocale(LC_NUMERIC, "C");
return;
}
setlocale(LC_NUMERIC, "C");
if (argv != NULL) {
PySys_SetArgv (argc, argv);
for (i = 0; i < argc; i++)