summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer/mpegplayer.c
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/mpegplayer.c
parenta122d24b2b1892e92b76d8a46e888c011e6d2510 (diff)
downloadrockbox-6186b556bdbe97bc3c50dd8feb970590bec2053c.tar.gz
rockbox-6186b556bdbe97bc3c50dd8feb970590bec2053c.zip
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/mpegplayer.c')
-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)
930 fps=frame; 930 fps=frame;
931 fps*=441000; 931 fps*=441000;
932 fps/=s; 932 fps/=s;
933 rb->snprintf(str,sizeof(str),"%d.%d %d %d %d", 933 rb->snprintf(str,sizeof(str),"%d.%d %d %d",
934 (int)(fps/10),(int)(fps%10),skipped,(int)s,(int)eta2); 934 (int)(fps/10),(int)(fps%10),skipped,delay);
935 rb->lcd_putsxy(0,0,str); 935 rb->lcd_putsxy(0,0,str);
936 rb->lcd_update_rect(0,0,LCD_WIDTH,8); 936 rb->lcd_update_rect(0,0,LCD_WIDTH,8);
937 937
@@ -1132,7 +1132,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
1132 1132
1133 while (( bytes_to_read > 0) && (file_remaining > 0) && 1133 while (( bytes_to_read > 0) && (file_remaining > 0) &&
1134 ((audiostatus != STREAM_DONE) || (videostatus != STREAM_DONE))) { 1134 ((audiostatus != STREAM_DONE) || (videostatus != STREAM_DONE))) {
1135 n = rb->read(in_file, disk_buf_tail, MIN(128*1024,bytes_to_read)); 1135 n = rb->read(in_file, disk_buf_tail, MIN(32*1024,bytes_to_read));
1136 1136
1137 bytes_to_read -= n; 1137 bytes_to_read -= n;
1138 file_remaining -= n; 1138 file_remaining -= n;