From 44706c83707bea84f7540293ae4c8fba3b49f214 Mon Sep 17 00:00:00 2001 From: Tal Shalif Date: Sat, 2 Aug 2008 17:16:39 +0000 Subject: [PATCH] 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 * ext/sdl/sdlvideosink.c: (gst_sdlvideosink_initsdl): Use g_setenv() and g_unsetenv() instead of setenv() to fix compilation with mingw. Fixes bug #545247. --- ChangeLog | 8 ++++++++ ext/sdl/sdlvideosink.c | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 63c413cbe6..245f7e14a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-08-02 Sebastian Dröge + + Patch by: Tal Shalif + + * 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 * configure.ac: diff --git a/ext/sdl/sdlvideosink.c b/ext/sdl/sdlvideosink.c index 321b7e89d1..ef8147ea87 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 */