[gnome-shell] recorder: Don't compute the buffer size twice
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] recorder: Don't compute the buffer size twice
- Date: Sun, 11 Jan 2015 14:42:46 +0000 (UTC)
commit 985e909876a8ac02a139d07c9190e3a1ff589eef
Author: Adel Gadllah <adel gadllah gmail com>
Date: Sun Jan 11 15:42:18 2015 +0100
recorder: Don't compute the buffer size twice
src/shell-recorder.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/shell-recorder.c b/src/shell-recorder.c
index ba1e546..3ff3d3d 100644
--- a/src/shell-recorder.c
+++ b/src/shell-recorder.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]