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:
parent
f7860976c1
commit
b183ef4295
1 changed files with 2 additions and 4 deletions
|
@ -560,8 +560,6 @@ static void pcmrec_callback(bool flush)
|
|||
if (write(wav_file, enc_chunk, chunk_size) != chunk_size)
|
||||
{
|
||||
close_wave();
|
||||
if(must_boost)
|
||||
cpu_boost(false);
|
||||
logf("pcmrec: write err");
|
||||
is_error = true;
|
||||
break;
|
||||
|
@ -580,11 +578,11 @@ static void pcmrec_callback(bool flush)
|
|||
enc_rd_index = (enc_rd_index + 1) % enc_num_chunks;
|
||||
}
|
||||
|
||||
cpu_boost(false);
|
||||
|
||||
/* sync file */
|
||||
fsync(wav_file);
|
||||
|
||||
cpu_boost(false);
|
||||
|
||||
logf("done");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue