summaryrefslogtreecommitdiffstats
path: root/record.c
diff options
context:
space:
mode:
authorkraxel <kraxel>2005-09-01 11:58:38 +0000
committerkraxel <kraxel>2005-09-01 11:58:38 +0000
commitbbbcf6448f9259976384732dae8b7c2b9d1a995d (patch)
tree84bc5b36cfd0e49bf8c8fe208e5c443adfae4301 /record.c
parentf7f8c9c38b917a93c4d831ced81b6171fc440e1b (diff)
downloadrecord-master.tar.gz
- make -n work also without -v ...HEADmaster
Diffstat (limited to 'record.c')
-rw-r--r--record.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/record.c b/record.c
index ec09ef7..7dc98fb 100644
--- a/record.c
+++ b/record.c
@@ -849,6 +849,8 @@ main(int argc, char *argv[])
break;
if (wav_size + sound_blksize + sizeof(WAVEHDR) > maxsize) {
record_stop(wav,wavfile,tocfile);
+ if (maxfiles && nr == maxfiles)
+ break;
wav = record_start(wavfile,tocfile,&nr);
}
wav_write_audio(wav,sound_buffer,sound_blksize);