summaryrefslogtreecommitdiff
path: root/ext/sdl
diff options
context:
space:
mode:
authorAndrew Andkjar <enki@goodship.net>2006-08-29 12:07:38 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-08-29 12:07:38 +0000
commitef178aabf965c0cc8722f07267f478e58c1f2a5e (patch)
tree507e0d00d61d1ba38d579ff10d3edf4b95957191 /ext/sdl
parentd83b0ef58d4f37a1eb99e7212e637778fa72c39e (diff)
downloadgstreamer-plugins-bad-ef178aabf965c0cc8722f07267f478e58c1f2a5e.tar.gz
ext/sdl/: Only de-init the subsystem we previously initialised. Avoids borkage when both sdlvideosink and sdlaudiosin...
Original commit message from CVS: Patch by: Andrew Andkjar <enki at goodship net> * ext/sdl/sdlaudiosink.c: (gst_sdlaudio_sink_close): * ext/sdl/sdlvideosink.c: (gst_sdlvideosink_supported), (gst_sdlvideosink_deinitsdl): Only de-init the subsystem we previously initialised. Avoids borkage when both sdlvideosink and sdlaudiosink are used at the same time and one is shut down.
Diffstat (limited to 'ext/sdl')
-rw-r--r--ext/sdl/sdlaudiosink.c2
-rw-r--r--ext/sdl/sdlvideosink.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/sdl/sdlaudiosink.c b/ext/sdl/sdlaudiosink.c
index fb97c4356..85bcd4d26 100644
--- a/ext/sdl/sdlaudiosink.c
+++ b/ext/sdl/sdlaudiosink.c
@@ -284,7 +284,7 @@ gst_sdlaudio_sink_close (GstAudioSink * asink)
sdlaudio->eos = TRUE;
SEMAPHORE_UP (sdlaudio->semA);
SEMAPHORE_UP (sdlaudio->semB);
- SDL_Quit ();
+ SDL_QuitSubSystem (SDL_INIT_AUDIO);
return TRUE;
}
diff --git a/ext/sdl/sdlvideosink.c b/ext/sdl/sdlvideosink.c
index 9b3df7789..de796ea33 100644
--- a/ext/sdl/sdlvideosink.c
+++ b/ext/sdl/sdlvideosink.c
@@ -338,7 +338,7 @@ gst_sdlvideosink_supported (GstImplementsInterface * interface,
/* True if the video driver is X11 */
result = (strcmp ("x11", SDL_VideoDriverName (tmp, 4)) == 0);
- SDL_Quit ();
+ SDL_QuitSubSystem (SDL_INIT_VIDEO);
g_mutex_unlock (sdlvideosink->lock);
} else
result = sdlvideosink->is_xwindows;
@@ -484,7 +484,7 @@ gst_sdlvideosink_deinitsdl (GstSDLVideoSink * sdlvideosink)
sdlvideosink->event_thread = NULL;
}
- SDL_Quit ();
+ SDL_QuitSubSystem (SDL_INIT_VIDEO);
sdlvideosink->init = FALSE;
}