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:
Murray Stokely 2002-04-13 12:44:18 +00:00
parent dd5650233b
commit 76ce87ffba

View File

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