diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-11-11 22:43:41 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-11-11 22:43:41 +0000 |
| commit | f844ab207fbc1883f5c6659e7ebdee8f6cd58b3a (patch) | |
| tree | fe689d9f9a2e7c04ef96e13fb5c1a713f867574e | |
| parent | 94fb95f00b3812cc5f439dbd51dcbb4f98a15269 (diff) | |
| download | rockbox-f844ab207fbc1883f5c6659e7ebdee8f6cd58b3a.zip rockbox-f844ab207fbc1883f5c6659e7ebdee8f6cd58b3a.tar.gz rockbox-f844ab207fbc1883f5c6659e7ebdee8f6cd58b3a.tar.bz2 rockbox-f844ab207fbc1883f5c6659e7ebdee8f6cd58b3a.tar.xz | |
Correct flags to the open() call when recording
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2832 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/mpeg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c index 7f2d1d4..5497db2 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c @@ -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(); |