summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2010-08-11 15:20:31 +0200
committerHarald Hoyer <harald@redhat.com>2010-08-11 15:21:33 +0200
commit1b3b6c2df7d84b620e1168ea4dfe96cca5ec5f8e (patch)
tree0caaa6e04b09ead6b26b966c356e3c246059cdd6 /extras
parent36b6aca5c108e30af9742b79eff46272be771f82 (diff)
cdrom_id: READ TOC before READ DISC INFORMATION fixes qemu
Diffstat (limited to 'extras')
-rw-r--r--extras/cdrom_id/cdrom_id.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/extras/cdrom_id/cdrom_id.c b/extras/cdrom_id/cdrom_id.c
index 5086bfa64f..889b2342e8 100644
--- a/extras/cdrom_id/cdrom_id.c
+++ b/extras/cdrom_id/cdrom_id.c
@@ -868,14 +868,14 @@ int main(int argc, char *argv[])
if (cd_profiles(udev, fd) < 0)
goto print;
- /* get writable media state */
- if (cd_media_info(udev, fd) < 0)
- goto print;
-
/* get session/track info */
if (cd_media_toc(udev, fd) < 0)
goto print;
+ /* get writable media state */
+ if (cd_media_info(udev, fd) < 0)
+ goto print;
+
print:
printf("ID_CDROM=1\n");
if (cd_cd_rom)