From 63864f4acd6611243afc461e6dcc3829feef98f6 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Tue, 6 Sep 2011 00:18:05 -0400 Subject: [PATCH] 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 --- src/cddev.c | 1 + 1 file changed, 1 insertion(+) 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: -- 2.20.1