summaryrefslogtreecommitdiffstats
path: root/ext/sdl
diff options
context:
space:
mode:
authorTal Shalif <tshalif@nargila.org>2008-08-02 17:16:39 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-08-02 17:16:39 +0000
commit44706c83707bea84f7540293ae4c8fba3b49f214 (patch)
treedd283d07a1c3e0a61c850dfacffb27479915ebb5 /ext/sdl
parentdea8d9ff25720314807aaa16d2eddeaf1c6a45a2 (diff)
downloadgst-plugins-bad-44706c83707bea84f7540293ae4c8fba3b49f214.tar.gz
gst-plugins-bad-44706c83707bea84f7540293ae4c8fba3b49f214.tar.bz2
gst-plugins-bad-44706c83707bea84f7540293ae4c8fba3b49f214.zip
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.
Diffstat (limited to 'ext/sdl')
-rw-r--r--ext/sdl/sdlvideosink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sdl/sdlvideosink.c b/ext/sdl/sdlvideosink.c
index 321b7e89..ef8147ea 100644
--- a/ext/sdl/sdlvideosink.c
+++ b/ext/sdl/sdlvideosink.c
@@ -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 */