mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
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:
parent
290508932e
commit
1172e2875d
1 changed files with 4 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue