gstreamer/gst-libs/gst/gl
Julien Isorce 08cce2cd5b gl/cocoa: ensure to call NSApplication:sharedApplication in the main thread
"(NSApplication *)sharedApplication This method also makes a connection
to the window server and completes other initialization"
The implicit thing which is not mentioned is that it required
to be called in the main thread.

Fix a regression introduces by 82b7c915bb
When using with gst-launch, it was not possible to click on the close
cross of the window anymore which is a bit anoying and also because
it's was possible before.

Prior to this commit the GstGLContextCocoaClass was initialized
in the main thread because gst_gl_context_new was called in the
state change function from going from ready to paused.

From this commit this call is done from the streaming thread.
So that the call to [NSApplication sharedApplication];
was not done in the main thread anymore.

We now ensure that by assuming there is a GMainLoop running.
It's for debugging purpose so that's ok to do that. Also
note we already do this assumtion to run app itereations.

The regression had no consequence on the cocoa/videooverlay example
(that should be moved from gst-plugins-gl to -bad) because the
application is responsible for that necessary call.
2017-12-09 19:31:36 +00:00
..
android gl: fix out-of-source builds pt2 2017-12-09 19:31:35 +00:00
cocoa gl/cocoa: ensure to call NSApplication:sharedApplication in the main thread 2017-12-09 19:31:36 +00:00
dispmanx gl: fix out-of-source builds pt2 2017-12-09 19:31:35 +00:00
egl gl/eglimage: #if 0 unused code 2017-12-09 19:31:36 +00:00
glprototypes gl: and update the Makefile 2017-12-09 19:31:35 +00:00
wayland gl: fix out-of-source builds. 2017-12-09 19:31:35 +00:00
win32 gl: fix out-of-source builds pt2 2017-12-09 19:31:35 +00:00
x11 gl/glx: use the context's display rather than asking for the window's 2017-12-09 19:31:35 +00:00
.gitignore [644/906] update .gitignore for some new files 2017-12-09 19:31:27 +00:00
gl.h gl: add colorconvert object that converts between color spaces/formats 2017-12-09 19:31:36 +00:00
gstgl_fwd.h gl: add colorconvert object that converts between color spaces/formats 2017-12-09 19:31:36 +00:00
gstglapi.c gl: silence all the compiler warnings 2017-12-09 19:31:34 +00:00
gstglapi.h gl: add EGLImage support 2017-12-09 19:31:35 +00:00
gstglbufferpool.c gl/mem: allocate the memory per plane 2017-12-09 19:31:36 +00:00
gstglbufferpool.h gl: add EGLImage support 2017-12-09 19:31:35 +00:00
gstglcolorconvert.c gl/color: fix warning type qualifiers ignored 2017-12-09 19:31:36 +00:00
gstglcolorconvert.h gl/color: pass large value by reference 2017-12-09 19:31:36 +00:00
gstglcontext.c gl: fix detection of extensions with GL versions < 3 2017-12-09 19:31:35 +00:00
gstglcontext.h [891/906] context: add support for wrapping external contexts 2017-12-09 19:31:33 +00:00
gstgldisplay.c gl: add EGLImage support 2017-12-09 19:31:35 +00:00
gstgldisplay.h gl: Add EGLDisplay display subclass 2017-12-09 19:31:34 +00:00
gstgldownload.c gl/color: pass large value by reference 2017-12-09 19:31:36 +00:00
gstgldownload.h gl/mem: allocate the memory per plane 2017-12-09 19:31:36 +00:00
gstgles2.h gl: add EGLImage support 2017-12-09 19:31:35 +00:00
gstglfeature.c gl: silence all the compiler warnings 2017-12-09 19:31:34 +00:00
gstglfeature.h [894/906] gl: add missing G_BEGIN_DECLS/G_END_DECLS 2017-12-09 19:31:33 +00:00
gstglfilter.c gl/mem: allocate the memory per plane 2017-12-09 19:31:36 +00:00
gstglfilter.h [874/906] filter: implement draw_texture for GLES2 2017-12-09 19:31:33 +00:00
gstglframebuffer.c [838/906] gl: Use GL_TEXTURE_2D instead of GL_TEXTURE_RECTANGLE 2017-12-09 19:31:32 +00:00
gstglframebuffer.h [812/906] move the GL vtable from GstGLDisplay to GstGLContext 2017-12-09 19:31:31 +00:00
gstglmemory.c gl/mem: cache the stride/unpack length for upload 2017-12-09 19:31:36 +00:00
gstglmemory.h gl/mem: cache the stride/unpack length for upload 2017-12-09 19:31:36 +00:00
gstglmixer.c gl/mem: allocate the memory per plane 2017-12-09 19:31:36 +00:00
gstglmixer.h [855/906] upload: add support for GstVideoGLTextureUploadMeta 2017-12-09 19:31:32 +00:00
gstglmixerpad.h [733/906] gl: Major header and include cleanup 2017-12-09 19:31:29 +00:00
gstglshader.c gl: silence all the compiler warnings 2017-12-09 19:31:34 +00:00
gstglshader.h [812/906] move the GL vtable from GstGLDisplay to GstGLContext 2017-12-09 19:31:31 +00:00
gstglshadervariables.c gl: silence all the compiler warnings 2017-12-09 19:31:34 +00:00
gstglshadervariables.h [733/906] gl: Major header and include cleanup 2017-12-09 19:31:29 +00:00
gstglupload.c gl/color: pass large value by reference 2017-12-09 19:31:36 +00:00
gstglupload.h gl/mem: allocate the memory per plane 2017-12-09 19:31:36 +00:00
gstglutils.c gl: add EGLImage support 2017-12-09 19:31:35 +00:00
gstglutils.h gl: add EGLImage support 2017-12-09 19:31:35 +00:00
gstglwindow.c gl/window: add a dummy window class 2017-12-09 19:31:34 +00:00
gstglwindow.h [863/906] window: hold a ref to our GstGLDisplay 2017-12-09 19:31:33 +00:00
Makefile.am gl: add colorconvert object that converts between color spaces/formats 2017-12-09 19:31:36 +00:00