Skip to content
Browse files

patch-ab (from

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 dc820adf74db07ed3bca2491e53afb3d3e8e25e9
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/cdrom/openbsd/SDL_syscdrom.c
@@ -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));

0 comments on commit dc820ad

Please sign in to comment.