From 6186b556bdbe97bc3c50dd8feb970590bec2053c Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Sat, 31 Mar 2007 08:51:32 +0000 Subject: Change file reads from 128KB to 32KB chunks - this prevents audio dropouts on targets with slow disk access (Sansa). Also change FPS display line to include the current a/v delay. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12978 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/mpegplayer/mpegplayer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/plugins/mpegplayer') diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c index f2196d548f..f4e2859e46 100644 --- a/apps/plugins/mpegplayer/mpegplayer.c +++ b/apps/plugins/mpegplayer/mpegplayer.c @@ -930,8 +930,8 @@ static void video_thread(void) fps=frame; fps*=441000; fps/=s; - rb->snprintf(str,sizeof(str),"%d.%d %d %d %d", - (int)(fps/10),(int)(fps%10),skipped,(int)s,(int)eta2); + rb->snprintf(str,sizeof(str),"%d.%d %d %d", + (int)(fps/10),(int)(fps%10),skipped,delay); rb->lcd_putsxy(0,0,str); rb->lcd_update_rect(0,0,LCD_WIDTH,8); @@ -1132,7 +1132,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) while (( bytes_to_read > 0) && (file_remaining > 0) && ((audiostatus != STREAM_DONE) || (videostatus != STREAM_DONE))) { - n = rb->read(in_file, disk_buf_tail, MIN(128*1024,bytes_to_read)); + n = rb->read(in_file, disk_buf_tail, MIN(32*1024,bytes_to_read)); bytes_to_read -= n; file_remaining -= n; -- cgit v1.2.3