gtk: Fix possibility of NULL variable

It's quite unlikely since it's initialized in instance initialization.

CID #1417721
This commit is contained in:
Edward Hervey 2017-11-24 08:00:21 +01:00 committed by Edward Hervey
parent 6669ccdae5
commit 63398b8525

View file

@ -496,6 +496,7 @@ gtk_gst_gl_widget_init_winsys (GtkGstGLWidget * gst_widget)
GError *error = NULL;
g_return_val_if_fail (GTK_IS_GST_GL_WIDGET (gst_widget), FALSE);
g_return_val_if_fail (priv->display != NULL, FALSE);
GTK_GST_BASE_WIDGET_LOCK (gst_widget);