if ((gst_gl_display_get_handle_type (display) & GST_GL_DISPLAY_TYPE_EAGL)
== GST_GL_DISPLAY_TYPE_NONE) {
- GST_INFO ("Wrong display type %u for this window type %u", display->type,
+ GST_INFO ("Wrong display type %u for this context type %u", display->type,
GST_GL_DISPLAY_TYPE_EAGL);
return NULL;
}
#if GST_GL_HAVE_WINDOW_WIN32 || GST_GL_HAVE_WINDOW_EAGL
if (!display) {
GstGLDisplayType create_type = 0;
+#if GST_GL_HAVE_WINDOW_WIN32
if (type & GST_GL_DISPLAY_TYPE_WIN32)
create_type = GST_GL_DISPLAY_TYPE_WIN32;
- else if (type & GST_GL_DISPLAY_TYPE_EAGL)
+#endif
+#if GST_GL_HAVE_WINDOW_EAGL
+ if (type & GST_GL_DISPLAY_TYPE_EAGL)
create_type = GST_GL_DISPLAY_TYPE_EAGL;
+#endif
if (create_type) {
- GST_INFO_OBJECT (display, "Creating display with type %u(0x%x)",
+ GST_INFO ("Creating display with type %u(0x%x)",
create_type, create_type);
display = create_dummy_display ();
display->type = create_type;