mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 17:18:15 +00:00
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:
parent
dea8d9ff25
commit
44706c8370
2 changed files with 10 additions and 2 deletions
|
@ -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>
|
2008-08-02 Jan Schmidt <jan.schmidt@sun.com>
|
||||||
|
|
||||||
* configure.ac:
|
* configure.ac:
|
||||||
|
|
|
@ -593,12 +593,12 @@ gst_sdlvideosink_initsdl (GstSDLVideoSink * sdlvideosink)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sdlvideosink->xwindow_id) {
|
if (!sdlvideosink->xwindow_id) {
|
||||||
unsetenv ("SDL_WINDOWID");
|
g_unsetenv ("SDL_WINDOWID");
|
||||||
} else {
|
} else {
|
||||||
char SDL_hack[32];
|
char SDL_hack[32];
|
||||||
|
|
||||||
sprintf (SDL_hack, "%lu", sdlvideosink->xwindow_id);
|
sprintf (SDL_hack, "%lu", sdlvideosink->xwindow_id);
|
||||||
setenv ("SDL_WINDOWID", SDL_hack, 1);
|
g_setenv ("SDL_WINDOWID", SDL_hack, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialize the SDL library */
|
/* Initialize the SDL library */
|
||||||
|
|
Loading…
Reference in a new issue