summaryrefslogtreecommitdiff
path: root/sys/osxvideo/osxvideosink.h
Commit message (Collapse)AuthorAgeFilesLines
* osxvideosink: Disable hack for NSApp iteration with a special #defineSebastian Dröge2015-01-101-0/+2
| | | | | | | | | | | | | | | | The hack causes deadlocks and other interesting problems and it really can only be fixed properly inside GLib. We will include a patch for GLib in our builds for now that handles this, and hopefully at some point GLib will also merge a proper solution. A proper solution would first require to refactor the polling in GMainContext to only provide a single fd, e.g. via epoll/kqueue or a thread like the one added by our patch. Then this single fd could be retrieved from the GMainContext and directly integrated into a NSRunLoop. https://bugzilla.gnome.org/show_bug.cgi?id=741450 https://bugzilla.gnome.org/show_bug.cgi?id=704374
* osxvideosink: remove legacy code for passing a window handleAndoni Morales Alastruey2014-06-231-1/+0
| | | | | | | | "have-ns-view" and the "embed" property was kept in 0.10 for backwards compatibility but it's no longer used in favor of the GstVideoOverlay interface https://bugzilla.gnome.org/show_bug.cgi?id=703753
* osxvideosink: use the video frame API instead of the video meta APIMatthieu Bouron2014-04-081-0/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=726738
* osxvideo: unifdef -DRUN_NS_APP_THREADJeremy Huddleston Sequoia2014-01-021-6/+0
|
* osxvideo: Assume SDK and deployment target are at least Snow LeopardJeremy Huddleston Sequoia2014-01-021-14/+0
|
* osx: Make OSX version checks more consistentSebastian Dröge2013-12-311-2/+2
| | | | | | And especially also consider update versions, e.g. 10.5 with updates will be 1051 or similar and thus bigger than MAC_OS_X_VERSION_10_5 but still won't have the API we want to use.
* osxvideosink: Fix build on updated OS X LeopardJeremy Huddleston2013-12-311-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=721245
* osxvideosink: defer the window handle setup to the main threadAndoni Morales Alastruey2013-07-101-0/+1
|
* osxvideosink: only create the NS app thread for Cocoa onceAndoni Morales Alastruey2013-07-101-12/+13
| | | | | | The helper thread for Cocoa, in case no NS run loop is running, should be started only once and shared across all the instances running
* osxvideosink: fix setting window handle after transitionAndoni Morales Alastruey2013-05-021-2/+0
| | | | | The destroyed flag was not reset properly and it's also not needed as we can check osxwindow != NULL
* Fix FSF addressTim-Philipp Müller2012-11-041-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=687520
* osxvideosink: Make osxvideosink use the non-deprecated threading api from glib.Martin Ertsaas2012-08-221-4/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=682446
* osxvideosink: add a better detection for the main run loopAndoni Morales Alastruey2012-08-061-0/+5
|
* osxvideosink: Really fix the build on 10.5Josep Torra2012-05-311-4/+10
| | | | | The API that we use to run the Cocoa loop in another thread does not exist in 10.5 or earlier.
* osxvideosink: fix race in starting the runloop threadAlessandro Decina2012-05-311-1/+3
| | | | | | Block gst_osx_video_sink_run_cocoa_loop until the loop thread has started and finished initializing NSApp. Fixes occasional warnings/crashes due to two threads going inside NSApp before finishLaunching had completed.
* osxvideosink: Fix last commit to actually workJosep Torra2012-05-301-3/+3
| | | | MAC_OS_X_VERSION_10_6 is obviously not defined on 10.5.
* osxvideosink: NSWindowDelegate is available in all OSX versions newer than 10.6Sebastian Dröge2012-05-301-1/+1
|
* osxvideosink: Fix build with older OSX versionsJosep Torra2012-05-301-0/+4
|
* osxvideosink: make sure all selectors are performed on the same threadAndoni Morales Alastruey2012-05-251-1/+4
| | | | | | | | | | | When we are using a dedicated thread to run the main run loop we must make sure that all selectors are performed on this same thread. For instance if performSelectorOnMainThread is called from the real main thread, it will not go through the message queue and will be executed from the real main thread. By forcing the target thread, we ensure that all functions will be called either from the real main thread when the main run loop is running or from our thread spinning the main loop.
* osxvideosink: add code to optionally run the cocoa main runloop in a ↵Alessandro Decina2012-05-241-1/+9
| | | | | | | | | separate thread Add a little hack to run the cocoa main runloop from a separate thread _when_ the main runloop is not being run (which means that the app doesn't use cocoa). Runloops are thread specific, so the hack boils down to getting the runloop for the main thread and setting it as the runloop for our dedicated thread.
* osxvideosink: reset the embed property for backward compatilibityAndoni Morales Alastruey2012-05-241-0/+1
|
* osxvideosink: add force-aspect-ratio propertyAndoni Morales Alastruey2012-05-241-0/+1
|
* osxvideosink: start internal window if no view is providedAndoni Morales Alastruey2012-05-241-0/+21
|
* osvideosink: create, destroy, resize and draw from the main threadAndoni Morales Alastruey2012-05-241-0/+23
|
* osxvideosink: implement the xoverlay interface. Fixes #618349.Alessandro Decina2010-05-111-0/+1
|
* osxvideosink: remove non-embedded mode and fix memory management.Michael Smith2009-02-051-24/+0
| | | | | | | Remove non-embedded mode. Embed mode becomes default and only mode. embed property is retained for binary compatibility. Added autorelease pools around all objc functions that might be called from a non-main thread.
* sys/osxvideo/osxvideosink.*: Handle video window resizing more correctly, ↵Michael Smith2008-11-201-3/+0
| | | | | | | | | | avoiding crashes when embedding the window ... Original commit message from CVS: * sys/osxvideo/osxvideosink.h: * sys/osxvideo/osxvideosink.m: Handle video window resizing more correctly, avoiding crashes when embedding the window and resizing it.
* sys/osxvideo/osxvideosink.m (gst_osx_video_sink_osxwindow_destroy)Andy Wingo2008-03-181-0/+1
| | | | | | | | | | | | Original commit message from CVS: 2008-03-18 Andy Wingo <wingo@pobox.com> * sys/osxvideo/osxvideosink.m (gst_osx_video_sink_osxwindow_destroy) (gst_osx_video_sink_osxwindow_new): Actually set a lock on the task, whoopdee. (cocoa_event_loop): Pacify the taymans by upping the usleepage to 2 ms.
* sys/osxvideo/osxvideosink.m (gst_osx_video_sink_osxwindow_destroy)Andy Wingo2008-03-181-0/+2
| | | | | | | | | | | Original commit message from CVS: 2008-03-18 Andy Wingo <wingo@pobox.com> * sys/osxvideo/osxvideosink.m (gst_osx_video_sink_osxwindow_destroy) (gst_osx_video_sink_osxwindow_new, cocoa_event_loop): * sys/osxvideo/osxvideosink.h (struct _GstOSXVideoSink): If we need to run an event loop, do so in a task instead of assuming that there will be a GMainLoop. Fixes #523134.
* Revert previous change caused by a file that got stuck on an old revision.Stefan Kost2008-01-151-34/+41
| | | | | | | | Original commit message from CVS: * docs/plugins/gst-plugins-good-plugins-sections.txt: * sys/osxvideo/osxvideosink.h: Revert previous change caused by a file that got stuck on an old revision.
* Managed to resolve most unused declarations. Filed a bug for one left.Stefan Kost2008-01-151-40/+34
| | | | | | | | | Original commit message from CVS: * docs/plugins/Makefile.am: * docs/plugins/gst-plugins-good-plugins-sections.txt: * sys/osxaudio/gstosxaudiosink.h: * sys/osxvideo/osxvideosink.h: Managed to resolve most unused declarations. Filed a bug for one left.
* sys/osxvideo/osxvideosink.*: Remove the event-loop-in-separate-thread ↵Edward Hervey2007-05-171-2/+0
| | | | | | | | | | | modifications, because MacOSX is $#@(*%$# ! For... Original commit message from CVS: * sys/osxvideo/osxvideosink.h: * sys/osxvideo/osxvideosink.m: Remove the event-loop-in-separate-thread modifications, because MacOSX is $#@(*%$# ! For those wondering, the event handling needs to be done in the main thread after all..
* sys/osxvideo/osxvideosink.*: Fix a stupid #if vs #ifdef bug. Should use the ↵Edward Hervey2007-05-171-0/+2
| | | | | | | | | | | proper colorspace now. Original commit message from CVS: * sys/osxvideo/osxvideosink.h: * sys/osxvideo/osxvideosink.m: Fix a stupid #if vs #ifdef bug. Should use the proper colorspace now. Use a separate thread/task for the cocoa event_loop, else it wouldn't stop.
* sys/osxvideo/: Fix leaks when running a NSApp.Edward Hervey2007-03-141-1/+11
| | | | | | | | | | | | | Original commit message from CVS: * sys/osxvideo/cocoawindow.h: * sys/osxvideo/cocoawindow.m: * sys/osxvideo/osxvideosink.h: * sys/osxvideo/osxvideosink.m: Fix leaks when running a NSApp. Accept any kind of resolutions. Works in fullscreen. Can maximize. Only thing left before being able to move this to -good is documentation and embedded window support.
* update copyright statementsChristian Schaller2007-02-271-0/+7
| | | | | Original commit message from CVS: update copyright statements
* sys/osxvideo/: Disable the cocoa event loop since it's a huge memory leak. ↵Edward Hervey2007-02-271-21/+0
| | | | | | | | | | | | | | Should only matter if the sink isn't used ... Original commit message from CVS: * sys/osxvideo/cocoawindow.h: * sys/osxvideo/cocoawindow.m: * sys/osxvideo/osxvideosink.h: * sys/osxvideo/osxvideosink.m: Disable the cocoa event loop since it's a huge memory leak. Should only matter if the sink isn't used within an NSApp (which has already got a coca event loop). Remove all unused code.
* configure.ac: Check for an Objective C compilerEdward Hervey2007-01-301-0/+111
Original commit message from CVS: * configure.ac: Check for an Objective C compiler * sys/Makefile.am: * sys/osxvideo/Makefile.am: * sys/osxvideo/cocoawindow.h: * sys/osxvideo/cocoawindow.m: * sys/osxvideo/osxvideosink.h: * sys/osxvideo/osxvideosink.m: Port of osxvideo plugin to 0.10. Do NOT consider 100% stable ! Fixes #402470