forked from len0rd/rockbox
Correct flags to the open() call when recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2832 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
94fb95f00b
commit
f844ab207f
1 changed files with 2 additions and 1 deletions
|
|
@ -1576,7 +1576,8 @@ static void mpeg_thread(void)
|
|||
{
|
||||
case MPEG_RECORD:
|
||||
DEBUGF("Recording...\n");
|
||||
mpeg_file = open("/RECORD.MP3", O_WRONLY);
|
||||
mpeg_file = open("/RECORD.MP3",
|
||||
O_WRONLY | O_TRUNC | O_CREAT);
|
||||
if(mpeg_file < 0)
|
||||
panicf("recfile: %d", mpeg_file);
|
||||
reset_mp3_buffer();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue