diff options
author | Brandon Low <lostlogic@rockbox.org> | 2007-11-05 18:54:22 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2007-11-05 18:54:22 +0000 |
commit | 405380e57f3054845771e82de46ad8a2e394fc6c (patch) | |
tree | 9d80ee892ee6c057c5db71c9387e85063c768aec /apps | |
parent | aef008b0617cc44d53161104720611d616224982 (diff) |
Don't keep resetting to default watermark during buffering, only do it once at play start
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15485 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playback.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/playback.c b/apps/playback.c index 42dbf56fe1..3bf3af1839 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -2379,9 +2379,6 @@ static bool audio_load_track(int offset, bool start_play) else track_id3 = bufgetid3(tracks[track_widx].id3_hid); -#ifndef HAVE_FLASH_STORAGE - set_filebuf_watermark(buffer_margin, 0); -#endif track_id3->elapsed = 0; enum data_type type = TYPE_PACKET_AUDIO; @@ -2804,6 +2801,9 @@ static void audio_play_start(size_t offset) /* Officially playing */ queue_reply(&audio_queue, 1); +#ifndef HAVE_FLASH_STORAGE + set_filebuf_watermark(buffer_margin, 0); +#endif audio_fill_file_buffer(true, offset); LOGFQUEUE("audio > audio Q_AUDIO_TRACK_CHANGED"); |