1
0
mirror of https://github.com/ElvishArtisan/rivendell.git synced 2025-04-27 14:41:45 +02:00

2019-08-31 Fred Gleason <fredg@paravelsystems.com>

* Changed the CD player polling interval ('RDCDPLAYER_CLOCK_INTERVAL')
	from 100 mS to 1000 mS.
This commit is contained in:
Fred Gleason 2019-08-31 20:03:50 -04:00
parent 87431f69b7
commit e53d844616
3 changed files with 7 additions and 1 deletions

@ -19061,3 +19061,6 @@
2019-08-31 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in the CD Track Ripper in rdlibrary(1) that allowed
data tracks to be ripped.
2019-08-31 Fred Gleason <fredg@paravelsystems.com>
* Changed the CD player polling interval ('RDCDPLAYER_CLOCK_INTERVAL')
from 100 mS to 1000 mS.

@ -379,7 +379,9 @@ void RDCdPlayer::clockData()
//
// Media Status
//
Profile("calling ioctl(CDROM_MEDIA_CHANGED)");
if(ioctl(cdrom_fd,CDROM_MEDIA_CHANGED,NULL)==0) {
Profile("ioctl(CDROM_MEDIA_CHANGED) success");
new_state=true;
if(cdrom_old_state==false) {
Profile("ReadToc() started");
@ -391,6 +393,7 @@ void RDCdPlayer::clockData()
}
}
else {
Profile("ioctl(CDROM_MEDIA_CHANGED) failure");
new_state=false;
if(cdrom_old_state==true) {
Profile("emitting ejected()");

@ -33,7 +33,7 @@
//
// Driver Settings
//
#define RDCDPLAYER_CLOCK_INTERVAL 100
#define RDCDPLAYER_CLOCK_INTERVAL 1000
#define RDCDPLAYER_BUTTON_DELAY 100
class RDCdPlayer : public QObject