device.c: an additional test for a NULL pointer to be on the safe side. cdda-player: better handling of eject.