Commit 9a9124dc authored by alex@thinkpad's avatar alex@thinkpad
Browse files

raw_diag: fix BUSY screen with 2-shot analyses in still photo mode

https://www.magiclantern.fm/forum/index.php?topic=10111.msg223667#msg223667

Issue: latest memory backend prefers SRM for very large buffers, but these can't be kept allocated during a still image capture. We need to use shoot_malloc instead.

TODO: tmp_malloc and related functions should be renamed in the memory backend, for consistency.

Thanks @timbytheriver for reporting.

--HG--
branch : iso-research
parent 75c1f3fe2927
......@@ -563,7 +563,7 @@ static void snr_graph_2_shots(int noise_curve)
for (int buffer_size_index = 0; buffer_size_index < COUNT(buffer_sizes) && !second_buf; buffer_size_index++)
{
raw_buffer_size = MIN(raw_info.frame_size, buffer_sizes[buffer_size_index] * 1024 * 1024);
second_buf = malloc(raw_buffer_size);
second_buf = tmp_malloc(raw_buffer_size); /* use shoot_malloc instead of srm_malloc */
}
if (second_buf)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment