recorder: Stop using deprecated cogl_read_pixels
This commit is contained in:
parent
60b3d43ea7
commit
e150a9cff2
@ -438,13 +438,13 @@ recorder_record_frame (ShellRecorder *recorder)
|
|||||||
size = recorder->area.width * recorder->area.height * 4;
|
size = recorder->area.width * recorder->area.height * 4;
|
||||||
|
|
||||||
data = g_malloc (recorder->area.width * 4 * recorder->area.height);
|
data = g_malloc (recorder->area.width * 4 * recorder->area.height);
|
||||||
cogl_read_pixels (recorder->area.x,
|
cogl_framebuffer_read_pixels (cogl_get_draw_framebuffer (),
|
||||||
recorder->area.y,
|
recorder->area.x,
|
||||||
recorder->area.width,
|
recorder->area.y,
|
||||||
recorder->area.height,
|
recorder->area.width,
|
||||||
COGL_READ_PIXELS_COLOR_BUFFER,
|
recorder->area.height,
|
||||||
CLUTTER_CAIRO_FORMAT_ARGB32,
|
CLUTTER_CAIRO_FORMAT_ARGB32,
|
||||||
data);
|
data);
|
||||||
|
|
||||||
buffer = gst_buffer_new();
|
buffer = gst_buffer_new();
|
||||||
gst_buffer_insert_memory (buffer, -1,
|
gst_buffer_insert_memory (buffer, -1,
|
||||||
|
Loading…
Reference in New Issue
Block a user