Commit 888fe99f authored by Sebastian Dröge's avatar Sebastian Dröge

eglglessink: Don't try to render expose() if no caps are known yet

parent 4dc028a2
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment