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

This commit is contained in:
Sebastian Dröge 2012-10-19 09:59:10 +00:00
parent 4dc028a2a3
commit 888fe99fa4

View file

@ -606,8 +606,13 @@ render_thread_func (GstEglGlesSink * eglglessink)
}
}
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);