mirror of
https://github.com/yawut/SDL.git
synced 2026-10-01 20:56:44 -05:00
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. --HG-- branch : SDL-1.2
This commit is contained in:
@@ -391,6 +391,7 @@ static int SDL_SYS_CDStop(SDL_CD *cdrom)
|
||||
/* 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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user