gstreamer/gst-libs/gst/gl
Julien Isorce 3c49f0f42a 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.
2014-04-12 15:46:47 +01:00
..
android gl: fix out-of-source builds pt2 2014-03-27 22:03:14 +11:00
cocoa gl/cocoa: ensure to call NSApplication:sharedApplication in the main thread 2014-04-12 15:46:47 +01:00
dispmanx gl: fix out-of-source builds pt2 2014-03-27 22:03:14 +11:00
egl gl/eglimage: #if 0 unused code 2014-04-11 10:37:06 +10:00
glprototypes gl: and update the Makefile 2014-03-23 01:02:03 +11:00
wayland gl: fix out-of-source builds. 2014-03-24 17:56:13 +01:00
win32 gl: fix out-of-source builds pt2 2014-03-27 22:03:14 +11:00
x11 gl/glx: use the context's display rather than asking for the window's 2014-04-02 22:53:10 +11:00
.gitignore [644/906] update .gitignore for some new files 2014-03-15 18:36:52 +01:00
gl.h gl: add colorconvert object that converts between color spaces/formats 2014-04-11 10:37:05 +10:00
gstgl_fwd.h gl: add colorconvert object that converts between color spaces/formats 2014-04-11 10:37:05 +10:00
gstglapi.c gl: silence all the compiler warnings 2014-03-16 15:17:44 +01:00
gstglapi.h gl: add EGLImage support 2014-03-26 19:09:13 +00:00
gstglbufferpool.c gl/mem: allocate the memory per plane 2014-04-11 10:37:06 +10:00
gstglbufferpool.h gl: add EGLImage support 2014-03-26 19:09:13 +00:00
gstglcolorconvert.c gl/color: fix warning type qualifiers ignored 2014-04-12 14:55:45 +01:00
gstglcolorconvert.h gl/color: pass large value by reference 2014-04-12 18:18:08 +10:00
gstglcontext.c gl: fix detection of extensions with GL versions < 3 2014-04-01 22:02:46 +11:00
gstglcontext.h [891/906] context: add support for wrapping external contexts 2014-03-15 18:37:07 +01:00
gstgldisplay.c gl: add EGLImage support 2014-03-26 19:09:13 +00:00
gstgldisplay.h gl: Add EGLDisplay display subclass 2014-03-17 10:56:39 +01:00
gstgldownload.c gl/color: pass large value by reference 2014-04-12 18:18:08 +10:00
gstgldownload.h gl/mem: allocate the memory per plane 2014-04-11 10:37:06 +10:00
gstgles2.h gl: add EGLImage support 2014-03-26 19:09:13 +00:00
gstglfeature.c gl: silence all the compiler warnings 2014-03-16 15:17:44 +01:00
gstglfeature.h [894/906] gl: add missing G_BEGIN_DECLS/G_END_DECLS 2014-03-15 18:37:07 +01:00
gstglfilter.c gl/mem: allocate the memory per plane 2014-04-11 10:37:06 +10:00
gstglfilter.h [874/906] filter: implement draw_texture for GLES2 2014-03-15 18:37:06 +01:00
gstglframebuffer.c [838/906] gl: Use GL_TEXTURE_2D instead of GL_TEXTURE_RECTANGLE 2014-03-15 18:37:03 +01:00
gstglframebuffer.h [812/906] move the GL vtable from GstGLDisplay to GstGLContext 2014-03-15 18:37:02 +01:00
gstglmemory.c gl/mem: cache the stride/unpack length for upload 2014-04-11 17:26:09 +10:00
gstglmemory.h gl/mem: cache the stride/unpack length for upload 2014-04-11 17:26:09 +10:00
gstglmixer.c gl/mem: allocate the memory per plane 2014-04-11 10:37:06 +10:00
gstglmixer.h [855/906] upload: add support for GstVideoGLTextureUploadMeta 2014-03-15 18:37:04 +01:00
gstglmixerpad.h [733/906] gl: Major header and include cleanup 2014-03-15 18:36:57 +01:00
gstglshader.c gl: silence all the compiler warnings 2014-03-16 15:17:44 +01:00
gstglshader.h [812/906] move the GL vtable from GstGLDisplay to GstGLContext 2014-03-15 18:37:02 +01:00
gstglshadervariables.c gl: silence all the compiler warnings 2014-03-16 15:17:44 +01:00
gstglshadervariables.h [733/906] gl: Major header and include cleanup 2014-03-15 18:36:57 +01:00
gstglupload.c gl/color: pass large value by reference 2014-04-12 18:18:08 +10:00
gstglupload.h gl/mem: allocate the memory per plane 2014-04-11 10:37:06 +10:00
gstglutils.c gl: add EGLImage support 2014-03-26 19:09:13 +00:00
gstglutils.h gl: add EGLImage support 2014-03-26 19:09:13 +00:00
gstglwindow.c gl/window: add a dummy window class 2014-03-17 10:44:32 +01:00
gstglwindow.h [863/906] window: hold a ref to our GstGLDisplay 2014-03-15 18:37:05 +01:00
Makefile.am gl: add colorconvert object that converts between color spaces/formats 2014-04-11 10:37:05 +10:00