Read the CD_VOLUME property from the cdrom.inf file and use it to
initialize the volume ID for the media device in use.
This commit is contained in:
parent
dd5650233b
commit
76ce87ffba
@ -170,6 +170,13 @@ mediaInitCDROM(Device *dev)
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
if ((cp = property_find(cd_attr, "CD_VOLUME")) != NULL) {
|
||||
dev->volume = atoi(cp);
|
||||
/* XXX - Sanity check the volume here? */
|
||||
msgDebug("CD Volume %d initialized!\n", dev->volume);
|
||||
} else {
|
||||
dev->volume = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (cd_attr)
|
||||
|
Loading…
Reference in New Issue
Block a user