From 405380e57f3054845771e82de46ad8a2e394fc6c Mon Sep 17 00:00:00 2001 From: Brandon Low Date: Mon, 5 Nov 2007 18:54:22 +0000 Subject: 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 --- apps/playback.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps') 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"); -- cgit v1.2.3