1
0
Fork 0
forked from len0rd/rockbox

Forgot to remove a must_boost reference. Unboost after fsync

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11008 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2006-09-20 02:53:06 +00:00
parent f7860976c1
commit b183ef4295

View file

@ -560,8 +560,6 @@ static void pcmrec_callback(bool flush)
if (write(wav_file, enc_chunk, chunk_size) != chunk_size) if (write(wav_file, enc_chunk, chunk_size) != chunk_size)
{ {
close_wave(); close_wave();
if(must_boost)
cpu_boost(false);
logf("pcmrec: write err"); logf("pcmrec: write err");
is_error = true; is_error = true;
break; break;
@ -580,11 +578,11 @@ static void pcmrec_callback(bool flush)
enc_rd_index = (enc_rd_index + 1) % enc_num_chunks; enc_rd_index = (enc_rd_index + 1) % enc_num_chunks;
} }
cpu_boost(false);
/* sync file */ /* sync file */
fsync(wav_file); fsync(wav_file);
cpu_boost(false);
logf("done"); logf("done");
} }
} }