mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
solid: optical disc content type detection fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ec45095de1
commit
4b1526323a
2 changed files with 5 additions and 2 deletions
|
@ -35,6 +35,8 @@ OpticalDisc::OpticalDisc(UDevDevice *device)
|
|||
if (!p_cdio) {
|
||||
qWarning() << "Could not open" << devicename;
|
||||
}
|
||||
|
||||
// qDebug() << "OpticalDisc" << devicename << capacity() << isRewritable() << isAppendable() << discType() << availableContent();
|
||||
}
|
||||
|
||||
OpticalDisc::~OpticalDisc()
|
||||
|
@ -156,9 +158,8 @@ Solid::OpticalDisc::ContentTypes OpticalDisc::availableContent() const
|
|||
}
|
||||
|
||||
// not implemented by libcdio: VideoDvd, VideoBluRay
|
||||
const track_t firsttrack = cdio_get_first_track_num(p_cdio);
|
||||
const track_t totaltracks = cdio_get_num_tracks(p_cdio);
|
||||
for (track_t tcount = firsttrack; tcount < totaltracks; tcount++) {
|
||||
for (track_t tcount = 0; tcount < totaltracks; tcount++) {
|
||||
cdio_iso_analysis_t analysis;
|
||||
::memset(&analysis, 0, sizeof(analysis));
|
||||
const cdio_fs_anal_t guessresult = cdio_guess_cd_type(p_cdio, 0, tcount, &analysis);
|
||||
|
|
|
@ -50,6 +50,8 @@ OpticalDrive::OpticalDrive(UDevDevice *device)
|
|||
m_device->registerAction("eject", this,
|
||||
SLOT(slotEjectRequested()),
|
||||
SLOT(slotEjectDone(int,QString)));
|
||||
|
||||
// qDebug() << "OpticalDrive" << devicename << writeSpeeds() << writeSpeed() << readSpeed() << supportedMedia();
|
||||
}
|
||||
|
||||
OpticalDrive::~OpticalDrive()
|
||||
|
|
Loading…
Add table
Reference in a new issue