mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
eglglessink: Don't try to render expose() if no caps are known yet
This commit is contained in:
parent
4dc028a2a3
commit
888fe99fa4
1 changed files with 7 additions and 2 deletions
|
@ -606,8 +606,13 @@ render_thread_func (GstEglGlesSink * eglglessink)
|
|||
}
|
||||
}
|
||||
|
||||
eglglessink->last_flow =
|
||||
gst_eglglessink_render_and_display (eglglessink, buf);
|
||||
if (eglglessink->configured_caps) {
|
||||
eglglessink->last_flow =
|
||||
gst_eglglessink_render_and_display (eglglessink, buf);
|
||||
} else {
|
||||
GST_DEBUG_OBJECT (eglglessink, "No caps configured yet, not drawing anything");
|
||||
}
|
||||
|
||||
if (buf) {
|
||||
g_mutex_lock (eglglessink->render_lock);
|
||||
g_cond_broadcast (eglglessink->render_cond);
|
||||
|
|
Loading…
Reference in a new issue