diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2003-04-15 08:16:27 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2003-04-15 08:16:27 +0000 |
commit | 1cc6d829a1a465e5c797c7533864dc7e015dbe7d (patch) | |
tree | fb09072df218f826c261c8735dbc6d2f90961a70 /firmware/mpeg.c | |
parent | 631b8d3bb8af7d3abf86d658054f6f88f78173a2 (diff) | |
download | rockbox-1cc6d829a1a465e5c797c7533864dc7e015dbe7d.tar.gz rockbox-1cc6d829a1a465e5c797c7533864dc7e015dbe7d.zip |
Safer low water mark when recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3557 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/mpeg.c')
-rw-r--r-- | firmware/mpeg.c | 5 |
1 files changed, 3 insertions, 2 deletions
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) | |||
854 | if(num_bytes < 0) | 854 | if(num_bytes < 0) |
855 | num_bytes += mp3buflen; | 855 | num_bytes += mp3buflen; |
856 | 856 | ||
857 | if(mp3buflen - num_bytes < MPEG_LOW_WATER && !saving) | 857 | if(mp3buflen - num_bytes < MPEG_RECORDING_LOW_WATER && !saving) |
858 | { | 858 | { |
859 | saving = true; | 859 | saving = true; |
860 | queue_post(&mpeg_queue, MPEG_SAVE_DATA, 0); | 860 | queue_post(&mpeg_queue, MPEG_SAVE_DATA, 0); |
@@ -1940,7 +1940,8 @@ static void mpeg_thread(void) | |||
1940 | or if we should stop recording */ | 1940 | or if we should stop recording */ |
1941 | if(amount_to_save) | 1941 | if(amount_to_save) |
1942 | { | 1942 | { |
1943 | if(mp3buflen - amount_to_save < MPEG_LOW_WATER || | 1943 | if(mp3buflen - |
1944 | amount_to_save < MPEG_RECORDING_LOW_WATER || | ||
1944 | stop_pending) | 1945 | stop_pending) |
1945 | { | 1946 | { |
1946 | int rc; | 1947 | int rc; |