summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReynaldo H. Verdejo Pinochet <reynaldo@collabora.com>2012-09-10 11:22:26 -0300
committerReynaldo H. Verdejo Pinochet <reynaldo@collabora.com>2012-09-10 11:22:26 -0300
commit5b8c8a8f263b643a36994bcb365316bb814177df (patch)
tree8b847b5261f8b41ae71fca6e2406f5704fb42d99
parentfc6aaf8cefbc1f80f7f1bfeb31fc2f3fafd94a09 (diff)
Drop win availability check from init_egl_surface
There's no chance to reach this function without a window.
-rw-r--r--sys/android/gstvidroidsink.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/android/gstvidroidsink.c b/sys/android/gstvidroidsink.c
index 838e12f96..bbc286429 100644
--- a/sys/android/gstvidroidsink.c
+++ b/sys/android/gstvidroidsink.c
@@ -849,7 +849,7 @@ gst_vidroidsink_expose (GstXOverlay * overlay)
return;
}
-/* Checks available egl extensions and chooses
+/* Checks available egl/gles extensions and chooses
* a suitable rendering path from GstVidroidSinkRenderingPath
* according to what's available on this platform.
* This function can only be called after an EGL context
@@ -937,12 +937,6 @@ gst_vidroidsink_init_egl_surface (GstViDroidSink * vidroidsink)
GST_DEBUG_OBJECT (vidroidsink, "Enter EGL surface setup");
- /* XXX: Impossible?. Check logic and remove if not needed */
- if (G_UNLIKELY (!vidroidsink->have_window)) {
- GST_ERROR_OBJECT (vidroidsink, "Attempted to setup surface without window");
- goto HANDLE_ERROR;
- }
-
g_mutex_lock (vidroidsink->flow_lock);
vidroidsink->surface = eglCreateWindowSurface (vidroidsink->display,