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:
fba2a20
)
caopengllayersink: render black when we don't have a texture to display
author
Matthew Waters
<matthew@centricular.com>
Tue, 24 Feb 2015 12:52:39 +0000
(23:52 +1100)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 9 Dec 2017 19:31:55 +0000
(19:31 +0000)
Like when the winsys asks us to redraw before the pipeline has started
ext/gl/caopengllayersink.m
patch
|
blob
|
history
diff --git
a/ext/gl/caopengllayersink.m
b/ext/gl/caopengllayersink.m
index 1f7b3d1eb35f41f3d21716daa10b86099e1ed6b8..fdbcf7bba9e1cb480ac50d4f09cc84879878d7f0 100644
(file)
--- a/
ext/gl/caopengllayersink.m
+++ b/
ext/gl/caopengllayersink.m
@@
-983,6
+983,8
@@
gst_ca_opengl_layer_sink_on_draw (GstCAOpenGLLayerSink * ca_sink)
/* check if texture is ready for being drawn */
if (!ca_sink->redisplay_texture) {
+ gl->ClearColor (0.0f, 0.0f, 0.0f, 1.0f);
+ gl->Clear (GL_COLOR_BUFFER_BIT);
GST_CA_OPENGL_LAYER_SINK_UNLOCK (ca_sink);
return;
}