summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-03-31 08:51:32 +0000
committerDave Chapman <dave@dchapman.com>2007-03-31 08:51:32 +0000
commit6186b556bdbe97bc3c50dd8feb970590bec2053c (patch)
tree5f191a25e18cf3500a12d30951f545aa6010de86 /apps/plugins/mpegplayer
parenta122d24b2b1892e92b76d8a46e888c011e6d2510 (diff)
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
Diffstat (limited to 'apps/plugins/mpegplayer')
-rw-r--r--apps/plugins/mpegplayer/mpegplayer.c6
1 files changed, 3 insertions, 3 deletions
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;