gstreamer/gst-libs/gst
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
..
basecamerabinsrc basecamerabinsrc: Add auto-start property to basecamerabin 2013-02-11 22:04:59 +01:00
codecparsers h264parse: Set framerate even for interlaced videos 2014-04-10 09:09:38 +02:00
egl eglglessink: move GstEGLImageBufferPool to gstegl lib 2014-02-25 17:29:18 +00:00
gl gl/cocoa: ensure to call NSApplication:sharedApplication in the main thread 2014-04-12 15:46:47 +01:00
insertbin insertbin: Annotate callback scopes 2013-05-15 20:03:30 -04:00
interfaces GstPhotography: Add new enum values to match android's parameters 2012-11-20 09:37:59 +00:00
mpegts mpegts: add atsc terrestrial virtual channel table 2014-04-10 09:09:38 +02:00
uridownloader uridownloader: Fix string order in warning message 2014-03-13 14:41:06 +01:00
gettext.h Fix FSF address 2012-11-04 00:09:59 +00:00
glib-compat-private.h glib-compat-private.h: remove old GStaticRecMutex stuff 2013-02-12 10:39:44 +00:00
gst-i18n-plugin.h Fix FSF address 2012-11-04 00:09:59 +00:00
Makefile.am Move gst-plugins-gl to bad 2014-03-16 15:17:59 +01:00