[758/906] android: Don't require a window to be set

This allows the filters to be usable without a GL sink downstream.
This commit is contained in:
Sebastian Dröge 2013-07-15 18:07:12 +02:00 committed by Matthew Waters
parent 39b6b5c272
commit 030c8ed624

View file

@ -120,12 +120,6 @@ gst_gl_window_android_egl_create_context (GstGLWindow * window,
{
GstGLWindowAndroidEGL *window_egl = GST_GL_WINDOW_ANDROID_EGL (window);
if (!window_egl->native_window) {
g_set_error (error, GST_GL_WINDOW_ERROR, GST_GL_WINDOW_ERROR_WRONG_CONFIG,
"No native window set");
return FALSE;
}
window_egl->main_context = g_main_context_new ();
window_egl->loop = g_main_loop_new (window_egl->main_context, FALSE);