eglglessink: Avoid reiniting EGL after the first time

This commit is contained in:
Reynaldo H. Verdejo Pinochet 2012-09-17 17:21:26 -03:00 committed by Sebastian Dröge
parent 75fe18200a
commit f707961183

View file

@ -855,10 +855,11 @@ gst_eglglessink_start (GstBaseSink * sink)
{ {
GstEglGlesSink *eglglessink = GST_EGLGLESSINK (sink); GstEglGlesSink *eglglessink = GST_EGLGLESSINK (sink);
if (!egl_init (eglglessink)) { if (!eglglessink->egl_started)
GST_ERROR_OBJECT (eglglessink, "EGL uninitialized. Bailing out"); if (!egl_init (eglglessink)) {
goto HANDLE_ERROR; GST_ERROR_OBJECT (eglglessink, "EGL uninitialized. Bailing out");
} goto HANDLE_ERROR;
}
/* Ask for a window to render to */ /* Ask for a window to render to */
gst_x_overlay_prepare_xwindow_id (GST_X_OVERLAY (eglglessink)); gst_x_overlay_prepare_xwindow_id (GST_X_OVERLAY (eglglessink));