ext/sdl/sdlvideosink.c: Use g_setenv() and g_unsetenv() instead of setenv() to fix compilation with mingw. Fixes bug ...

Original commit message from CVS:
Patch by: Tal Shalif <tshalif at nargila dot org>
* ext/sdl/sdlvideosink.c: (gst_sdlvideosink_initsdl):
Use g_setenv() and g_unsetenv() instead of setenv() to fix compilation
with mingw. Fixes bug #545247.
This commit is contained in:
Tal Shalif 2008-08-02 17:16:39 +00:00 committed by Sebastian Dröge
parent dea8d9ff25
commit 44706c8370
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2008-08-02 Sebastian Dröge <sebastian.droege@collabora.co.uk>
Patch by: Tal Shalif <tshalif at nargila dot org>
* ext/sdl/sdlvideosink.c: (gst_sdlvideosink_initsdl):
Use g_setenv() and g_unsetenv() instead of setenv() to fix compilation
with mingw. Fixes bug #545247.
2008-08-02 Jan Schmidt <jan.schmidt@sun.com>
* configure.ac:

View file

@ -593,12 +593,12 @@ gst_sdlvideosink_initsdl (GstSDLVideoSink * sdlvideosink)
}
if (!sdlvideosink->xwindow_id) {
unsetenv ("SDL_WINDOWID");
g_unsetenv ("SDL_WINDOWID");
} else {
char SDL_hack[32];
sprintf (SDL_hack, "%lu", sdlvideosink->xwindow_id);
setenv ("SDL_WINDOWID", SDL_hack, 1);
g_setenv ("SDL_WINDOWID", SDL_hack, 1);
}
/* Initialize the SDL library */