changeset 4342:f2800721813d SDL-1.2

patch-ab (from reinoud@NetBSD.org): Apply patch to first unlock the CD before trying to eject it. Since SDL doesn't seem to have lock/unlock primitives, this looks like the right thing to do. Fixes audio/tcd's eject function too.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 16 Oct 2009 05:05:21 +0000
parents 262d62627860
children d380e7a6265b
files src/cdrom/openbsd/SDL_syscdrom.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/cdrom/openbsd/SDL_syscdrom.c	Fri Oct 16 04:29:27 2009 +0000
+++ b/src/cdrom/openbsd/SDL_syscdrom.c	Fri Oct 16 05:05:21 2009 +0000
@@ -391,6 +391,7 @@
 /* Eject the CD-ROM */
 static int SDL_SYS_CDEject(SDL_CD *cdrom)
 {
+	SDL_SYS_CDioctl(cdrom->id, CDIOCALLOW, 0);
 	return(SDL_SYS_CDioctl(cdrom->id, CDIOCEJECT, 0));
 }