From: Edward Hervey Date: Thu, 5 Mar 2015 18:09:49 +0000 (+0100) Subject: gldisplay: Only use debugging if we have valid values X-Git-Tag: 1.19.3~511^2~1989^2~1023 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=285afe08615ad06a4fc118aca11b6ea87c11e9ef;p=platform%2Fupstream%2Fgstreamer.git 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 --- diff --git a/gst-libs/gst/gl/gstgldisplay.c b/gst-libs/gst/gl/gstgldisplay.c index 022e4252dc..48023ce5b5 100644 --- a/gst-libs/gst/gl/gstgldisplay.c +++ b/gst-libs/gst/gl/gstgldisplay.c @@ -272,9 +272,10 @@ gst_context_set_gl_display (GstContext * context, GstGLDisplay * display) g_return_if_fail (context != NULL); - GST_CAT_LOG (gst_context, - "setting GstGLDisplay(%" GST_PTR_FORMAT ") on context(%" GST_PTR_FORMAT - ")", display, context); + if (display) + GST_CAT_LOG (gst_context, + "setting GstGLDisplay(%" GST_PTR_FORMAT ") on context(%" GST_PTR_FORMAT + ")", display, context); s = gst_context_writable_structure (context); gst_structure_set (s, GST_GL_DISPLAY_CONTEXT_TYPE, GST_TYPE_GL_DISPLAY,