Add debug logging to cdda lister.

This commit is contained in:
John Maguire 2011-08-09 20:20:45 +02:00
parent c307d2e87a
commit 176efeb4b0
1 changed files with 7 additions and 0 deletions

View File

@ -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) {