Add debug logging to cdda lister.
This commit is contained in:
parent
c307d2e87a
commit
176efeb4b0
|
@ -92,8 +92,15 @@ void CddaLister::UpdateDeviceFreeSpace(const QString&) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CddaLister::Init() {
|
void CddaLister::Init() {
|
||||||
|
cdio_init();
|
||||||
|
#ifdef Q_OS_DARWIN
|
||||||
|
if (!cdio_have_driver(DRIVER_OSX)) {
|
||||||
|
qLog(Error) << "libcdio was compiled without support for OS X!";
|
||||||
|
}
|
||||||
|
#endif
|
||||||
char **devices = cdio_get_devices(DRIVER_DEVICE);
|
char **devices = cdio_get_devices(DRIVER_DEVICE);
|
||||||
if (!devices) {
|
if (!devices) {
|
||||||
|
qLog(Debug) << "No CD devices found";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
for (; *devices != NULL; ++devices) {
|
for (; *devices != NULL; ++devices) {
|
||||||
|
|
Loading…
Reference in New Issue