mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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:
parent
115c88be9d
commit
195af7df00
2 changed files with 12 additions and 0 deletions
|
@ -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>
|
2004-11-11 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* pkgconfig/gst-python-uninstalled.pc.in:
|
* pkgconfig/gst-python-uninstalled.pc.in:
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <locale.h>
|
||||||
|
|
||||||
/* include this first, before NO_IMPORT_PYGOBJECT is defined */
|
/* include this first, before NO_IMPORT_PYGOBJECT is defined */
|
||||||
#include <pygobject.h>
|
#include <pygobject.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
@ -89,7 +91,11 @@ init_gst (void)
|
||||||
g_free (argv);
|
g_free (argv);
|
||||||
}
|
}
|
||||||
PyErr_SetString (PyExc_RuntimeError, "can't initialize module gst");
|
PyErr_SetString (PyExc_RuntimeError, "can't initialize module gst");
|
||||||
|
setlocale(LC_NUMERIC, "C");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setlocale(LC_NUMERIC, "C");
|
||||||
if (argv != NULL) {
|
if (argv != NULL) {
|
||||||
PySys_SetArgv (argc, argv);
|
PySys_SetArgv (argc, argv);
|
||||||
for (i = 0; i < argc; i++)
|
for (i = 0; i < argc; i++)
|
||||||
|
|
Loading…
Reference in a new issue