eglglessink: Don't try to render expose() if no caps are known yet
This commit is contained in:
parent
4dc028a2a3
commit
888fe99fa4
@ -606,8 +606,13 @@ render_thread_func (GstEglGlesSink * eglglessink)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (eglglessink->configured_caps) {
|
||||||
eglglessink->last_flow =
|
eglglessink->last_flow =
|
||||||
gst_eglglessink_render_and_display (eglglessink, buf);
|
gst_eglglessink_render_and_display (eglglessink, buf);
|
||||||
|
} else {
|
||||||
|
GST_DEBUG_OBJECT (eglglessink, "No caps configured yet, not drawing anything");
|
||||||
|
}
|
||||||
|
|
||||||
if (buf) {
|
if (buf) {
|
||||||
g_mutex_lock (eglglessink->render_lock);
|
g_mutex_lock (eglglessink->render_lock);
|
||||||
g_cond_broadcast (eglglessink->render_cond);
|
g_cond_broadcast (eglglessink->render_cond);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user