forked from len0rd/rockbox
Better file system performance when recording by not using O_TRUNC
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3709 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e7d028e2fd
commit
a9944c385b
1 changed files with 1 additions and 1 deletions
|
@ -1856,7 +1856,7 @@ static void mpeg_thread(void)
|
|||
start_recording();
|
||||
demand_irq_enable(true);
|
||||
|
||||
mpeg_file = creat(recording_filename, O_WRONLY);
|
||||
mpeg_file = open(recording_filename, O_WRONLY|O_CREAT);
|
||||
|
||||
if(mpeg_file < 0)
|
||||
panicf("recfile: %d", mpeg_file);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue