From: Hugo Villeneuve Date: Tue, 6 Sep 2011 04:18:05 +0000 (-0400) Subject: Fix unhandled case CDROM_AUDIO_INVALID X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=63864f4acd6611243afc461e6dcc3829feef98f6;p=hvgrip.git Fix unhandled case CDROM_AUDIO_INVALID When using the CDROMSUBCHNL ioctl, the code does not handle the CDROM_AUDIO_INVALID audiostatus value. As a result, it thinks the disc is playing, and so you cannot select any other track than the current track. Origin: Tom Kelly ( tjk55 ) - 2010-11-08 22:13:22 UTC http://sourceforge.net/tracker/?func=detail&aid=3105579&group_id=3714&atid=303714 --- diff --git a/src/cddev.c b/src/cddev.c index 0088802..c5267eb 100644 --- a/src/cddev.c +++ b/src/cddev.c @@ -265,6 +265,7 @@ gboolean CDStat(DiscInfo *disc,gboolean read_toc) disc->disc_mode=CDAUDIO_PAUSED; break; case CDROM_AUDIO_NO_STATUS: + case CDROM_AUDIO_INVALID: disc->disc_mode=CDAUDIO_NOSTATUS; break; case CDROM_AUDIO_COMPLETED: