gl/display: avoid endless recursion for cocoa
authorMatthew Waters <ystreet00@gmail.com>
Wed, 7 May 2014 09:05:55 +0000 (19:05 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:39 +0000 (19:31 +0000)
gst-libs/gst/gl/gstgldisplay.c

index d71b55b..5bee1b1 100644 (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")))