Commit dbe69ecf authored by Sam Lantinga's avatar Sam Lantinga

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
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404094
parent a084339a
......@@ -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));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment