gldisplay: Fix inverted precondition

A GError argument must either be null or point to a NULL GError.

https://developer.gnome.org/glib/stable/glib-Error-Reporting.html
This commit is contained in:
Matthew Waters 2016-11-03 18:19:58 +11:00 committed by Tim-Philipp Müller
parent 62d0bac993
commit 873466a1f1

View file

@ -397,7 +397,7 @@ gst_gl_display_create_context (GstGLDisplay * display,
g_return_val_if_fail (display != NULL, FALSE); g_return_val_if_fail (display != NULL, FALSE);
g_return_val_if_fail (p_context != NULL, FALSE); g_return_val_if_fail (p_context != NULL, FALSE);
g_return_val_if_fail (error == NULL || *error != NULL, FALSE); g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
g_signal_emit (display, gst_gl_display_signals[CREATE_CONTEXT], 0, g_signal_emit (display, gst_gl_display_signals[CREATE_CONTEXT], 0,
other_context, &context); other_context, &context);