projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2729949
)
gldisplay: Only use debugging if we have valid values
author
Edward Hervey
<bilboed@bilboed.com>
Thu, 5 Mar 2015 18:09:49 +0000
(19:09 +0100)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 9 Dec 2017 19:31:56 +0000
(19:31 +0000)
The debug category won't have been created/activated if it's not a
valid display
gst-libs/gst/gl/gstgldisplay.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/gl/gstgldisplay.c
b/gst-libs/gst/gl/gstgldisplay.c
index 022e4252dccf1210c9d9cfdc9f3bcac15fa018c0..48023ce5b5a0e3cec5404ebb262b74a86405a2cb 100644
(file)
--- 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,