eglglessink: Cleanup stale code comments

This commit is contained in:
Reynaldo H. Verdejo Pinochet 2012-09-17 23:04:05 -03:00 committed by Sebastian Dröge
parent 391137a20e
commit 5763c8d308

View file

@ -1420,13 +1420,6 @@ gst_eglglessink_set_window_handle (GstXOverlay * overlay, guintptr id)
} }
} }
/*
if (!gst_eglglessink_init_egl_surface (eglglessink)) {
GST_ERROR_OBJECT (eglglessink, "Couldn't init EGL surface!");
goto HANDLE_ERROR;
}
*/
return; return;
/* Errors */ /* Errors */
@ -1631,13 +1624,6 @@ gst_eglglessink_setcaps (GstBaseSink * bsink, GstCaps * caps)
* already if it meant to do so * already if it meant to do so
*/ */
if (!eglglessink->have_window) { if (!eglglessink->have_window) {
/*
if (!eglglessink->can_create_window) {
GST_ERROR_OBJECT (eglglessink,
"Have no window and we have been told not to create one!");
goto HANDLE_ERROR;
}
*/
GST_INFO_OBJECT (eglglessink, GST_INFO_OBJECT (eglglessink,
"No window. Will attempt internal window creation"); "No window. Will attempt internal window creation");
if (!(window = gst_eglglessink_create_window (eglglessink, width, height))) { if (!(window = gst_eglglessink_create_window (eglglessink, width, height))) {
@ -1653,7 +1639,6 @@ gst_eglglessink_setcaps (GstBaseSink * bsink, GstCaps * caps)
goto HANDLE_ERROR; goto HANDLE_ERROR;
} }
} }
// gst_eglglessink_init_egl_exts (eglglessink);
SUCCEED: SUCCEED:
GST_INFO_OBJECT (eglglessink, "Setcaps succeed"); GST_INFO_OBJECT (eglglessink, "Setcaps succeed");