eglglessink: Don't ask for a window if we already have one

This commit is contained in:
Reynaldo H. Verdejo Pinochet 2012-09-18 10:43:38 -03:00 committed by Sebastian Dröge
parent 22eb374b57
commit ead20f4f0b

View file

@ -865,7 +865,8 @@ gst_eglglessink_start (GstBaseSink * sink)
}
/* Ask for a window to render to */
gst_x_overlay_prepare_xwindow_id (GST_X_OVERLAY (eglglessink));
if (!eglglessink->have_window)
gst_x_overlay_prepare_xwindow_id (GST_X_OVERLAY (eglglessink));
if (!eglglessink->have_window && !eglglessink->can_create_window) {
GST_ERROR_OBJECT (eglglessink, "Window handle unavailable and we "