chiark / gitweb /
cdrom_id: Swap media state and TOC info probing
authorMartin Pitt <martin.pitt@ubuntu.com>
Thu, 15 Apr 2010 19:25:57 +0000 (21:25 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Thu, 15 Apr 2010 19:29:18 +0000 (21:29 +0200)
commit30e3b1a0d3a3ec76f16736470dc656744848d941
treef0bcc6f8621dcdca41d1c0563f99601ec52bc20d
parent58e178894bfc040834e1270c6fe9b9fdef513550
cdrom_id: Swap media state and TOC info probing

Blank CDs do not have a TOC, thus will fail cd_media_toc() (at least with the
"Do not ignore errors from scsi_cmd_run()" fix). Thus probe the media state
first, so that we can properly detect blank media.
extras/cdrom_id/cdrom_id.c