diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-02-23 02:29:03 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-02-23 02:29:03 +0000 |
commit | 0c6458d3ad2d42ec941dbff89ed7d2abdfdbf951 (patch) | |
tree | a825b0b5a16b0d789d50ccb3feea4e45d0ffd97e /usr.bin/cdio/cdio.c | |
parent | 66f7eda9d2bd4a26f2f24f9986fce277812d6c22 (diff) |
All audio CDs does not start at block 0
Diffstat (limited to 'usr.bin/cdio/cdio.c')
-rw-r--r-- | usr.bin/cdio/cdio.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/usr.bin/cdio/cdio.c b/usr.bin/cdio/cdio.c index f980277b13e..046037b5d82 100644 --- a/usr.bin/cdio/cdio.c +++ b/usr.bin/cdio/cdio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cdio.c,v 1.3 1996/08/24 08:20:21 deraadt Exp $ */ +/* $OpenBSD: cdio.c,v 1.4 1997/02/23 02:29:02 niklas Exp $ */ /* * Compact Disc Control Utility by Serge V. Vakulenko <vak@cronyx.ru>. * Based on the non-X based CD player by Jean-Marc Zucconi and @@ -415,11 +415,16 @@ int play (arg) if (! arg || ! *arg) { /* Play the whole disc */ if (msf) - return play_blocks (0, msf2lba (toc_buffer[n].addr.msf.minute, - toc_buffer[n].addr.msf.second, - toc_buffer[n].addr.msf.frame)); + return + play_blocks (msf2lba (toc_buffer[0].addr.msf.minute, + toc_buffer[0].addr.msf.second, + toc_buffer[0].addr.msf.frame), + msf2lba (toc_buffer[n].addr.msf.minute, + toc_buffer[n].addr.msf.second, + toc_buffer[n].addr.msf.frame)); else - return play_blocks (0, ntohl(toc_buffer[n].addr.lba)); + return play_blocks (ntohl (toc_buffer[0].addr.lba), + ntohl (toc_buffer[n].addr.lba)); } if (strchr (arg, '#')) { |