check: verify gst_gl_display_add_context()
authorEdward Hervey <edward@centricular.com>
Sat, 9 May 2020 05:31:04 +0000 (07:31 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Sat, 9 May 2020 05:31:04 +0000 (07:31 +0200)
As is done almost everywhere else. Doesn't cost anything.

CID #1462817

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/657>

tests/check/elements/glfilter.c
tests/check/elements/glmixer.c

index 0d8d676..a71120e 100644 (file)
@@ -51,7 +51,7 @@ replace_display (GstHarness * h)
   fail_unless (gst_gl_display_create_context (new_display, NULL, &expected,
           NULL));
   fail_unless (expected != NULL);
-  gst_gl_display_add_context (new_display, expected);
+  fail_unless (gst_gl_display_add_context (new_display, expected));
 
   new_context = gst_context_new (GST_GL_DISPLAY_CONTEXT_TYPE, TRUE);
   gst_context_set_gl_display (new_context, new_display);
index ecd760c..34e119c 100644 (file)
@@ -51,7 +51,7 @@ replace_display (GstHarness * h)
   fail_unless (gst_gl_display_create_context (new_display, NULL, &expected,
           NULL));
   fail_unless (expected != NULL);
-  gst_gl_display_add_context (new_display, expected);
+  fail_unless (gst_gl_display_add_context (new_display, expected));
 
   new_context = gst_context_new (GST_GL_DISPLAY_CONTEXT_TYPE, TRUE);
   gst_context_set_gl_display (new_context, new_display);