# HG changeset patch # User Sam Lantinga # Date 1255669521 0 # Node ID f2800721813ddee9b19899298cf7ca528c4c9afb # Parent 262d62627860dcf7b1502e5fe95bfe3b4de41895 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. diff -r 262d62627860 -r f2800721813d src/cdrom/openbsd/SDL_syscdrom.c --- 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)); }