gl/display: avoid endless recursion for cocoa

This commit is contained in:
Matthew Waters 2014-05-07 19:05:55 +10:00
parent a5b3ba09b8
commit ee95595af0

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")))