recorder: Don't compute the buffer size twice

This commit is contained in:
Adel Gadllah 2015-01-11 15:42:18 +01:00
parent d183f13456
commit 985e909876

View File

@ -437,7 +437,7 @@ recorder_record_frame (ShellRecorder *recorder)
size = recorder->area.width * recorder->area.height * 4;
data = g_malloc (recorder->area.width * 4 * recorder->area.height);
data = g_malloc (size);
cogl_framebuffer_read_pixels (cogl_get_draw_framebuffer (),
recorder->area.x,
recorder->area.y,