summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-08-11 15:38:48 +0200
committerKay Sievers <kay.sievers@vrfy.org>2010-08-11 15:38:48 +0200
commit4f7f02b7bab1acfab87b824b91f5a848cbf835e7 (patch)
tree4ab128df5d2a499a8d206b6eba35cd295d148579
parent1b3b6c2df7d84b620e1168ea4dfe96cca5ec5f8e (diff)
cdrom_id: do not bail out when we can not read the TOC like for empty CDRW
-rw-r--r--extras/cdrom_id/cdrom_id.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/extras/cdrom_id/cdrom_id.c b/extras/cdrom_id/cdrom_id.c
index 889b2342e8..83e95d5812 100644
--- a/extras/cdrom_id/cdrom_id.c
+++ b/extras/cdrom_id/cdrom_id.c
@@ -869,12 +869,10 @@ int main(int argc, char *argv[])
goto print;
/* get session/track info */
- if (cd_media_toc(udev, fd) < 0)
- goto print;
+ cd_media_toc(udev, fd);
/* get writable media state */
- if (cd_media_info(udev, fd) < 0)
- goto print;
+ cd_media_info(udev, fd);
print:
printf("ID_CDROM=1\n");