mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
tests: update for glmemory api changes
This commit is contained in:
parent
4fc012af19
commit
56c3d97421
2 changed files with 5 additions and 5 deletions
|
@ -142,9 +142,9 @@ check_conversion (TestFrame * frames, guint size)
|
||||||
/* create GL buffer */
|
/* create GL buffer */
|
||||||
ref_count += GST_VIDEO_INFO_N_PLANES (&in_info);
|
ref_count += GST_VIDEO_INFO_N_PLANES (&in_info);
|
||||||
inbuf = gst_buffer_new ();
|
inbuf = gst_buffer_new ();
|
||||||
fail_unless (gst_gl_memory_setup_wrapped (context, GST_GL_TEXTURE_TARGET_2D,
|
fail_unless (gst_gl_memory_pbo_setup_wrapped (context,
|
||||||
&in_info, NULL, (gpointer *) in_data, in_mem, &ref_count,
|
GST_GL_TEXTURE_TARGET_2D, &in_info, NULL, (gpointer *) in_data,
|
||||||
_frame_unref));
|
(GstGLMemoryPBO **) in_mem, &ref_count, _frame_unref));
|
||||||
|
|
||||||
for (j = 0; j < GST_VIDEO_INFO_N_PLANES (&in_info); j++) {
|
for (j = 0; j < GST_VIDEO_INFO_N_PLANES (&in_info); j++) {
|
||||||
gst_buffer_append_memory (inbuf, (GstMemory *) in_mem[j]);
|
gst_buffer_append_memory (inbuf, (GstMemory *) in_mem[j]);
|
||||||
|
|
|
@ -209,8 +209,8 @@ GST_START_TEST (test_upload_buffer)
|
||||||
/* create GL buffer */
|
/* create GL buffer */
|
||||||
buffer = gst_buffer_new ();
|
buffer = gst_buffer_new ();
|
||||||
gl_mem =
|
gl_mem =
|
||||||
gst_gl_memory_wrapped (context, GST_GL_TEXTURE_TARGET_2D, &in_info, 0,
|
(GstGLMemory *) gst_gl_memory_pbo_wrapped (context,
|
||||||
NULL, rgba_data, NULL, NULL);
|
GST_GL_TEXTURE_TARGET_2D, &in_info, 0, NULL, rgba_data, NULL, NULL);
|
||||||
|
|
||||||
res =
|
res =
|
||||||
gst_memory_map ((GstMemory *) gl_mem, &map_info,
|
gst_memory_map ((GstMemory *) gl_mem, &map_info,
|
||||||
|
|
Loading…
Reference in a new issue