[vlc-devel] [PATCH] more caopengllayer vout changes

Florent Pillet 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.

Florent

-------------- next part --------------
A non-text attachment was scrubbed...
Name: caopengllayer.patch
Type: application/octet-stream
Size: 5267 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20140311/631290b5/attachment.obj>


More information about the vlc-devel mailing list