mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-28 16:23:50 +01: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user