mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +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
08b1d27e14
commit
e3ec517838
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 */
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue