osxvideosink: fix race in starting the runloop thread
authorAlessandro Decina <alessandro.decina@collabora.co.uk>
Sat, 26 May 2012 10:21:18 +0000 (12:21 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 31 May 2012 08:26:10 +0000 (10:26 +0200)
commitf20cdcd36b398d92dba5240dddb948cc49465180
tree6dcbe09837675c94583d98abf18e7acdd359424e
parent76b7998e4f424b8258049b6483b205784477d280
osxvideosink: fix race in starting the runloop thread

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