gl/display: avoid endless recursion for cocoa

This commit is contained in:
Matthew Waters 2014-05-07 19:05:55 +10:00 committed by Tim-Philipp Müller
parent a865a931fc
commit 90bf46484d

View file

@ -127,7 +127,7 @@ gst_gl_display_new (void)
#if GST_GL_HAVE_WINDOW_COCOA
if (!display && (!user_choice || g_strstr_len (user_choice, 5, "cocoa")))
display = GST_GL_DISPLAY (gst_gl_display_new ());
display = g_object_new (GST_TYPE_GL_DISPLAY, NULL);
#endif
#if GST_GL_HAVE_WINDOW_X11
if (!display && (!user_choice || g_strstr_len (user_choice, 3, "x11")))