From 1cc6d829a1a465e5c797c7533864dc7e015dbe7d Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 15 Apr 2003 08:16:27 +0000 Subject: Safer low water mark when recording git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3557 a1c6a512-1295-4272-9138-f99709370657 --- firmware/mpeg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'firmware/mpeg.c') diff --git a/firmware/mpeg.c b/firmware/mpeg.c index 30530ed85b..85f9c72a25 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c @@ -854,7 +854,7 @@ static void dma_tick(void) if(num_bytes < 0) num_bytes += mp3buflen; - if(mp3buflen - num_bytes < MPEG_LOW_WATER && !saving) + if(mp3buflen - num_bytes < MPEG_RECORDING_LOW_WATER && !saving) { saving = true; queue_post(&mpeg_queue, MPEG_SAVE_DATA, 0); @@ -1940,7 +1940,8 @@ static void mpeg_thread(void) or if we should stop recording */ if(amount_to_save) { - if(mp3buflen - amount_to_save < MPEG_LOW_WATER || + if(mp3buflen - + amount_to_save < MPEG_RECORDING_LOW_WATER || stop_pending) { int rc; -- cgit v1.2.3