mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 12:41:05 +00:00
caopengllayersink: render black when we don't have a texture to display
Like when the winsys asks us to redraw before the pipeline has started
This commit is contained in:
parent
fba2a2093f
commit
b09971445e
1 changed files with 2 additions and 0 deletions
|
@ -983,6 +983,8 @@ gst_ca_opengl_layer_sink_on_draw (GstCAOpenGLLayerSink * ca_sink)
|
||||||
|
|
||||||
/* check if texture is ready for being drawn */
|
/* check if texture is ready for being drawn */
|
||||||
if (!ca_sink->redisplay_texture) {
|
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);
|
GST_CA_OPENGL_LAYER_SINK_UNLOCK (ca_sink);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue