Fix crash in cdio on Mac.
This commit is contained in:
parent
cbc05354ee
commit
d0a3cd2455
@ -93,6 +93,9 @@ void CddaLister::UpdateDeviceFreeSpace(const QString&) {
|
||||
|
||||
void CddaLister::Init() {
|
||||
char **devices = cdio_get_devices(DRIVER_DEVICE);
|
||||
if (!devices) {
|
||||
return;
|
||||
}
|
||||
for (; *devices != NULL; ++devices) {
|
||||
if (strcmp("/dev/cdrom", *devices) == 0)
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user