We are currently experiencing downtime impacting viewing & cloning the Mesa repo, and some GitLab pages returning 503. Please see #freedesktop on IRC for more updates.

Commit c2ec68f0 authored by Nicolas Dufresne's avatar Nicolas Dufresne

glupload-test: Don't use gboolean to store enums

The unit test makes mixed usage of ret value. Sometimes its does
stores an enum and at other moment a boolean. Also fix test
using boolean instead of the correct enum value.

https://bugzilla.gnome.org/show_bug.cgi?id=783521
parent 07d078e7
......@@ -264,7 +264,7 @@ GST_START_TEST (test_upload_data)
GstCaps *in_caps, *out_caps;
GstBuffer *inbuf, *outbuf;
GstMapInfo map_info;
gboolean res;
gint res;
gint i = 0;
in_caps = gst_caps_from_string ("video/x-raw,format=RGBA,"
......@@ -278,7 +278,7 @@ GST_START_TEST (test_upload_data)
0, WIDTH * HEIGHT * 4, NULL, NULL);
res = gst_gl_upload_perform_with_buffer (upload, inbuf, &outbuf);
fail_if (res == FALSE, "Failed to upload buffer");
fail_unless (res == GST_GL_UPLOAD_DONE, "Failed to upload buffer");
fail_unless (GST_IS_BUFFER (outbuf));
res = gst_buffer_map (outbuf, &map_info, GST_MAP_READ | GST_MAP_GL);
......@@ -319,7 +319,7 @@ GST_START_TEST (test_upload_gl_memory)
GstVideoInfo in_info;
GstMapInfo map_info;
gint i = 0;
gboolean res;
gint res;
base_mem_alloc =
GST_GL_BASE_MEMORY_ALLOCATOR (gst_allocator_find
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment