eglglessink: Avoid initializing EGL at _set_window_handle()

_start() should take care of that.
This change asumes _setcaps() will
happen always after _start() is
done.
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2012-09-18 12:04:20 -03:00 committed by Sebastian Dröge
parent ead20f4f0b
commit a96fa541ee

View file

@ -1424,14 +1424,6 @@ gst_eglglessink_set_window_handle (GstXOverlay * overlay, guintptr id)
eglglessink->have_window = TRUE;
g_mutex_unlock (eglglessink->flow_lock);
if (!eglglessink->egl_started) {
GST_INFO_OBJECT (eglglessink, "Got a handle, doing EGL initialization");
if (!egl_init (eglglessink)) {
GST_ERROR_OBJECT (eglglessink, "EGL Initialization failed!");
goto HANDLE_ERROR;
}
}
return;
/* Errors */