[vlc-devel] [PATCH] more caopengllayer vout changes
fpillet at gmail.com
Tue Mar 11 15:16:06 CET 2014
Here is a more complete patch to caopengllayer. In particular, it groups two synchronous calls to the main thread into one. Also uses CATransaction lock / unlock when possible instead of being / commit, as the lock / unlock sequence is designed to guarantee data integrity when reading or setting model values in CALayer accross threads.
Also, the b_frame_available flag is cleared at the right location (just when we are sure that the frame has actually been consumed).
One note about this patch, it uses GCD (so requires Mac OS X 10.6+ / iOS 4+). Since VLC itself requires Mac OS X 10.6 or later, I assumed it was safe to use dispatch_* calls.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5267 bytes
Desc: not available
More information about the vlc-devel