Skip to content

Commit

Permalink
patch-ab (from reinoud@NetBSD.org):
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slouken committed Oct 16, 2009
1 parent dccd00b commit dc820ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cdrom/openbsd/SDL_syscdrom.c
Expand Up @@ -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));
}

Expand Down

0 comments on commit dc820ad

Please sign in to comment.