From ead20f4f0b5d280b8b5008dbdabf33883f94d265 Mon Sep 17 00:00:00 2001 From: "Reynaldo H. Verdejo Pinochet" Date: Tue, 18 Sep 2012 10:43:38 -0300 Subject: [PATCH] eglglessink: Don't ask for a window if we already have one --- ext/eglgles/gsteglglessink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/eglgles/gsteglglessink.c b/ext/eglgles/gsteglglessink.c index 7a39added7..714e316bac 100644 --- a/ext/eglgles/gsteglglessink.c +++ b/ext/eglgles/gsteglglessink.c @@ -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 "