forked from len0rd/rockbox
Even more return code checking when recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3366 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
cc136c5c60
commit
680b12c0c2
1 changed files with 8 additions and 2 deletions
|
|
@ -1899,12 +1899,18 @@ static void mpeg_thread(void)
|
|||
mpeg_file = open(recording_filename,
|
||||
O_WRONLY| O_APPEND);
|
||||
if(mpeg_file < 0)
|
||||
panicf("recfile: %d", mpeg_file);
|
||||
panicf("rec open: %d", mpeg_file);
|
||||
|
||||
rc = write(mpeg_file, mp3buf + mp3buf_read,
|
||||
writelen);
|
||||
|
||||
close(mpeg_file);
|
||||
if(rc < 0)
|
||||
panicf("rec wrt: %d", rc);
|
||||
|
||||
rc = close(mpeg_file);
|
||||
if(rc < 0)
|
||||
panicf("rec cls: %d", rc);
|
||||
|
||||
mpeg_file = -1;
|
||||
DEBUGF("rc: %x\n", rc);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue