mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
gl/display: avoid opening the X11 display on systems with Cocoa (OS X)
https://bugzilla.gnome.org/show_bug.cgi?id=729551
This commit is contained in:
parent
8743301af9
commit
1eeecae29e
1 changed files with 4 additions and 0 deletions
|
@ -133,6 +133,10 @@ gst_gl_display_new (void)
|
|||
platform_choice = g_getenv ("GST_GL_PLATFORM");
|
||||
GST_INFO ("creating a window, user choice:%s", user_choice);
|
||||
|
||||
#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 ());
|
||||
#endif
|
||||
#if GST_GL_HAVE_WINDOW_X11
|
||||
if (!display && (!user_choice || g_strstr_len (user_choice, 3, "x11")))
|
||||
display = GST_GL_DISPLAY (gst_gl_display_x11_new (NULL));
|
||||
|
|
Loading…
Reference in a new issue