forked from len0rd/rockbox
Fix FS #5852 by trying to properly close and update the recorded file, and give the FAT the correct file info. Add filehandle checks to some file functions.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15072 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bcdb3217de
commit
85058f5d9c
6 changed files with 33 additions and 6 deletions
|
|
@ -901,7 +901,10 @@ static void pcmrec_flush(unsigned flush_num)
|
|||
INC_ENC_INDEX(enc_rd_index);
|
||||
|
||||
if (errors != 0)
|
||||
{
|
||||
pcmrec_end_file();
|
||||
break;
|
||||
}
|
||||
|
||||
if (flush_num == PCMREC_FLUSH_MINI &&
|
||||
++chunks_flushed >= MINI_CHUNKS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue