tests: fix gl unit tests for recent API changes
authorTim-Philipp Müller <tim@centricular.com>
Wed, 2 Apr 2014 12:48:02 +0000 (13:48 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:35 +0000 (19:31 +0000)
tests/check/libs/gstglmemory.c
tests/check/libs/gstglupload.c

index e47fe5e..cae0976 100644 (file)
@@ -73,7 +73,7 @@ GST_START_TEST (test_basic)
 
     /* test allocator creation */
     ASSERT_WARNING (mem = gst_allocator_alloc (gl_allocator, 0, NULL););
-    mem = gst_gl_memory_alloc (context, vinfo);
+    mem = gst_gl_memory_alloc (context, &vinfo);
     fail_if (mem == NULL);
     gl_mem = (GstGLMemory *) mem;
 
index cd3a89f..4f0cb65 100644 (file)
@@ -241,7 +241,7 @@ GST_START_TEST (test_shader_compile)
 
     gst_video_info_set_format (&info, v_format, 320, 240);
 
-    res = gst_gl_upload_init_format (upload, info, info);
+    res = gst_gl_upload_init_format (upload, &info, &info);
     fail_if (res == FALSE, "Failed to init upload for video format %s\n",
         formats[i]);
 
@@ -265,7 +265,7 @@ GST_START_TEST (test_upload_data)
 
   gst_gl_context_gen_texture (context, &tex_id, FORMAT, WIDTH, HEIGHT);
 
-  gst_gl_upload_init_format (upload, in_info, out_info);
+  gst_gl_upload_init_format (upload, &in_info, &out_info);
 
   res = gst_gl_upload_perform_with_data (upload, tex_id, data);
   fail_if (res == FALSE, "Failed to upload buffer: %s\n",
@@ -297,9 +297,9 @@ GST_START_TEST (test_upload_memory)
   gst_video_info_set_format (&in_info, FORMAT, WIDTH, HEIGHT);
   gst_video_info_set_format (&out_info, FORMAT, WIDTH, HEIGHT);
 
-  gl_mem = gst_gl_memory_wrapped (context, in_info, rgba_data, NULL, NULL);
+  gl_mem = gst_gl_memory_wrapped (context, &in_info, rgba_data, NULL, NULL);
 
-  gst_gl_upload_init_format (upload, in_info, out_info);
+  gst_gl_upload_init_format (upload, &in_info, &out_info);
 
   res = gst_gl_upload_perform_with_memory (upload, gl_mem);
   fail_if (res == FALSE, "Failed to upload GstGLMemory: %s\n",
@@ -333,10 +333,10 @@ GST_START_TEST (test_upload_buffer)
 
   /* create GL buffer */
   buffer = gst_buffer_new ();
-  gl_mem = gst_gl_memory_wrapped (context, in_info, rgba_data, NULL, NULL);
+  gl_mem = gst_gl_memory_wrapped (context, &in_info, rgba_data, NULL, NULL);
   gst_buffer_append_memory (buffer, (GstMemory *) gl_mem);
 
-  gst_gl_upload_init_format (upload, in_info, out_info);
+  gst_gl_upload_init_format (upload, &in_info, &out_info);
 
   res = gst_gl_upload_perform_with_buffer (upload, buffer, &tex_id);
   fail_if (res == FALSE, "Failed to upload buffer: %s\n",
@@ -372,12 +372,12 @@ GST_START_TEST (test_upload_meta_producer)
 
   /* create GL buffer */
   buffer = gst_buffer_new ();
-  gl_mem = gst_gl_memory_wrapped (context, in_info, rgba_data, NULL, NULL);
+  gl_mem = gst_gl_memory_wrapped (context, &in_info, rgba_data, NULL, NULL);
   gst_buffer_append_memory (buffer, (GstMemory *) gl_mem);
 
   gst_gl_context_gen_texture (context, &tex_ids[0], FORMAT, WIDTH, HEIGHT);
 
-  gst_gl_upload_init_format (upload, in_info, out_info);
+  gst_gl_upload_init_format (upload, &in_info, &out_info);
   gst_gl_upload_add_video_gl_texture_upload_meta (upload, buffer);
 
   gl_upload_meta = gst_buffer_get_video_gl_texture_upload_meta (buffer);