summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-02-08 02:59:47 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-02-08 02:59:47 +0000
commitc43a307011e8e89b5a31e4f9ffab0dfeb0e3ed5b (patch)
tree977dcd5e0f702e3e4e6c8a23bf92281e0720fa38 /firmware
parent6ceb79622f2b79f9707b8d2d568460485bcf2dca (diff)
downloadrockbox-c43a307011e8e89b5a31e4f9ffab0dfeb0e3ed5b.tar.gz
rockbox-c43a307011e8e89b5a31e4f9ffab0dfeb0e3ed5b.zip
Added some debugging info to chase the 3-hour time display bug
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3227 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/mpeg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/mpeg.c b/firmware/mpeg.c
index 0ed52ed6cb..82073a6405 100644
--- a/firmware/mpeg.c
+++ b/firmware/mpeg.c
@@ -482,8 +482,8 @@ static int lowest_watermark_level; /* Debug value to observe the buffer
482#ifdef HAVE_MAS3587F 482#ifdef HAVE_MAS3587F
483static bool is_recording; /* We are recording */ 483static bool is_recording; /* We are recording */
484static bool stop_pending; 484static bool stop_pending;
485static unsigned long record_start_frame; /* Frame number where 485unsigned long record_start_frame; /* Frame number where
486 recording started */ 486 recording started */
487static bool saving; /* We are saving the buffer to disk */ 487static bool saving; /* We are saving the buffer to disk */
488#endif 488#endif
489 489
@@ -2187,7 +2187,7 @@ unsigned long mpeg_num_recorded_frames(void)
2187 { 2187 {
2188 /* Read the current frame */ 2188 /* Read the current frame */
2189 mas_readmem(MAS_BANK_D0, 0xfd0, &val, 1); 2189 mas_readmem(MAS_BANK_D0, 0xfd0, &val, 1);
2190 2190
2191 return val - record_start_frame; 2191 return val - record_start_frame;
2192 } 2192 }
2193 else 2193 else