gldisplay: Only use debugging if we have valid values

The debug category won't have been created/activated if it's not a
valid display
This commit is contained in:
Edward Hervey 2015-03-05 19:09:49 +01:00
parent 290508932e
commit 1172e2875d

View file

@ -272,6 +272,7 @@ gst_context_set_gl_display (GstContext * context, GstGLDisplay * display)
g_return_if_fail (context != NULL);
if (display)
GST_CAT_LOG (gst_context,
"setting GstGLDisplay(%" GST_PTR_FORMAT ") on context(%" GST_PTR_FORMAT
")", display, context);