AVVideoCompositionInstruction does not respect layer instructions order in Playground

Originator:david.isaac.lee
Number:rdar://35051840 Date Originated:October 18 2017
Status:Open Resolved:
Product:AVFoundation Product Version:
Classification: Reproducible:Always
 
Area:
AVFoundation

Summary:
When ordering video layers with AVVideoCompositionInstruction's layerInstructions property in a Swift Playground, the live preview does not show the layers correctly. Applying a non-identity affine transform to a layer seems to "fix" the problem.


Steps to Reproduce:
Open attached LayerBug playground and run.


Expected Results:
Video of animals is displayed above "instruments" promo video.


Actual Results:
No video of animals is visible :(
(Uncommenting line 72 makes it visible by adding a tiny transform to the instruments video.)


Version/Build:
Xcode Version 9.0 (9A235)
macOS 10.13.1 Beta (17B35a)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!