I wasn't sure where to post this, so I'm posting it here as it probably qualifies as a bug.
There is an issue affecting cameras that can record video in non-video modes.
When recording multiple videos without switching the camera off, the CHDK bitrate / remaining time display gets more and more incorrect with each recording.
I believe the logic inside gui_osd_draw_movie_time_left() (core/gui_osd.c) fails for recordings made in modes other than video.
The following patch seems to help, although I'm not sure it's optimal and without side effects.
Index: core/gui_osd.c
===================================================================
--- core/gui_osd.c (revision 5010)
+++ core/gui_osd.c (working copy)
@@ -618,6 +618,14 @@
}
}
}
+#ifdef CAM_HAS_VIDEO_BUTTON
+ else {
+ // seems to be needed for cameras that can record video in non-video modes (dedicated movie button)
+ // without this workaround, bitrate / remaining time calculation will be incorrect for subsequent recordings
+ // todo: can this cause any side effects?
+ init = 0;
+ }
+#endif
}
void gui_osd_draw_ev(int is_osd_edit)
I first noticed this while working on the D6 movie support code, but managed to reproduce it on my Ixus115.
Can somebody with a dedicated movie button camera confirm the issue?