osxvideosink: make sure all selectors are performed on the same thread
authorAndoni Morales Alastruey <ylatuya@gmail.com>
Thu, 24 May 2012 18:43:16 +0000 (20:43 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 25 May 2012 09:07:35 +0000 (11:07 +0200)
commit5b3d3b0885eee6dc6e10e0fc39ac1c85c7b73e2d
tree74af9773e0b2cc3e4d0c898cc6eb84ce8eda2b85
parente143c43ef5b7b5c164396fa99cb7e0ee4577c3ba
osxvideosink: make sure all selectors are performed on the same thread

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.
sys/osxvideo/cocoawindow.h
sys/osxvideo/cocoawindow.m
sys/osxvideo/osxvideosink.h
sys/osxvideo/osxvideosink.m