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>
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);
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);