mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-06-13 14:50:28 +02:00
2015-03-10 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'lib/rdcdplayer.cpp' that threw a segfault when opening the ripper with no CD inserted under RHEL 7.
This commit is contained in:
parent
da8cf74df8
commit
5e20febe5b
@ -14834,3 +14834,6 @@
|
|||||||
* Added a 'Capability::HaveMp4Decode' value to the
|
* Added a 'Capability::HaveMp4Decode' value to the
|
||||||
'RDStation::Capability' enumeration in 'lib/rdstation.cpp' and
|
'RDStation::Capability' enumeration in 'lib/rdstation.cpp' and
|
||||||
'lib/rdstation.h'.
|
'lib/rdstation.h'.
|
||||||
|
2015-03-10 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Fixed a bug in 'lib/rdcdplayer.cpp' that threw a segfault
|
||||||
|
when opening the ripper with no CD inserted under RHEL 7.
|
||||||
|
@ -201,6 +201,7 @@ int RDCdPlayer::rightVolume()
|
|||||||
|
|
||||||
void RDCdPlayer::setCddbRecord(RDCddbRecord *rec)
|
void RDCdPlayer::setCddbRecord(RDCddbRecord *rec)
|
||||||
{
|
{
|
||||||
|
if(cdrom_track_count>0) {
|
||||||
rec->setTracks(cdrom_track_count);
|
rec->setTracks(cdrom_track_count);
|
||||||
rec->setDiscId(cdrom_disc_id);
|
rec->setDiscId(cdrom_disc_id);
|
||||||
rec->setDiscLength(75*(60*cdrom_track_start[cdrom_track_count].msf.minute+
|
rec->setDiscLength(75*(60*cdrom_track_start[cdrom_track_count].msf.minute+
|
||||||
@ -209,6 +210,7 @@ void RDCdPlayer::setCddbRecord(RDCddbRecord *rec)
|
|||||||
for(int i=0;i<cdrom_track_count;i++) {
|
for(int i=0;i<cdrom_track_count;i++) {
|
||||||
rec->setTrackOffset(i,trackOffset(i));
|
rec->setTrackOffset(i,trackOffset(i));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -460,6 +462,7 @@ void RDCdPlayer::ReadToc()
|
|||||||
//
|
//
|
||||||
if(ioctl(cdrom_fd,CDROMREADTOCHDR,&tochdr)<0) {
|
if(ioctl(cdrom_fd,CDROMREADTOCHDR,&tochdr)<0) {
|
||||||
cdrom_track_count=0;
|
cdrom_track_count=0;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
cdrom_track_count=tochdr.cdth_trk1-tochdr.cdth_trk0+1;
|
cdrom_track_count=tochdr.cdth_trk1-tochdr.cdth_trk0+1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user