From: Matthew Waters Date: Mon, 14 Dec 2015 07:41:30 +0000 (+1100) Subject: tests: update for glmemory api changes X-Git-Tag: 1.19.3~507^2~7450 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6519622eb034810b4905f2ee34d35af8c588f0df;p=platform%2Fupstream%2Fgstreamer.git tests: update for glmemory api changes --- diff --git a/tests/check/libs/gstglcolorconvert.c b/tests/check/libs/gstglcolorconvert.c index 7ebf6f0..669cdd4 100644 --- a/tests/check/libs/gstglcolorconvert.c +++ b/tests/check/libs/gstglcolorconvert.c @@ -142,9 +142,9 @@ check_conversion (TestFrame * frames, guint size) /* create GL buffer */ ref_count += GST_VIDEO_INFO_N_PLANES (&in_info); inbuf = gst_buffer_new (); - fail_unless (gst_gl_memory_setup_wrapped (context, GST_GL_TEXTURE_TARGET_2D, - &in_info, NULL, (gpointer *) in_data, in_mem, &ref_count, - _frame_unref)); + fail_unless (gst_gl_memory_pbo_setup_wrapped (context, + GST_GL_TEXTURE_TARGET_2D, &in_info, NULL, (gpointer *) in_data, + (GstGLMemoryPBO **) in_mem, &ref_count, _frame_unref)); for (j = 0; j < GST_VIDEO_INFO_N_PLANES (&in_info); j++) { gst_buffer_append_memory (inbuf, (GstMemory *) in_mem[j]); diff --git a/tests/check/libs/gstglupload.c b/tests/check/libs/gstglupload.c index 0a9526d..61a6a9e 100644 --- a/tests/check/libs/gstglupload.c +++ b/tests/check/libs/gstglupload.c @@ -209,8 +209,8 @@ GST_START_TEST (test_upload_buffer) /* create GL buffer */ buffer = gst_buffer_new (); gl_mem = - gst_gl_memory_wrapped (context, GST_GL_TEXTURE_TARGET_2D, &in_info, 0, - NULL, rgba_data, NULL, NULL); + (GstGLMemory *) gst_gl_memory_pbo_wrapped (context, + GST_GL_TEXTURE_TARGET_2D, &in_info, 0, NULL, rgba_data, NULL, NULL); res = gst_memory_map ((GstMemory *) gl_mem, &map_info,