version 1.20, 2022/10/10 14:52:02 |
version 1.21, 2022/10/11 16:32:40 |
|
|
if (ti->fd >= 0 && |
if (ti->fd >= 0 && |
(write_sector(ti->fd, sec, blksize) != 0)) { |
(write_sector(ti->fd, sec, blksize) != 0)) { |
free(sec); |
free(sec); |
fprintf(stderr, "\nerror while writing to the " |
fprintf(stderr, "\n"); |
"%s file\n", ti->name); |
warnx("error while writing to the %s file", |
|
ti->name); |
return (-1); |
return (-1); |
} |
} |
if (ti->hdl != NULL && |
if (ti->hdl != NULL && |
|
|
sio_close(ti->hdl); |
sio_close(ti->hdl); |
ti->hdl = NULL; |
ti->hdl = NULL; |
free(sec); |
free(sec); |
fprintf(stderr, "\nerror while writing to audio " |
fprintf(stderr, "\n"); |
"output\n"); |
warnx("error while writing to audio output"); |
return (-1); |
return (-1); |
} |
} |
|
|
i++; |
i++; |
} else if (error != EAGAIN) { |
} else if (error != EAGAIN) { |
free(sec); |
free(sec); |
fprintf(stderr, "\nerror while reading from device\n"); |
fprintf(stderr, "\n"); |
|
warnx("error while reading from device"); |
return (-1); |
return (-1); |
} |
} |
} |
} |
|
|
info.fd = -1; |
info.fd = -1; |
} |
} |
if (error != 0) { |
if (error != 0) { |
fprintf(stderr, "can't rip track %u\n", |
warnx("can't rip track %u", |
toc_buffer[i].track); |
toc_buffer[i].track); |
break; |
break; |
} |
} |