Error when feeding AVSampleBufferDisplayLayer to AVPictureInPictureController

I have an AVSampleBufferDisplayLayer playing a local video. When adding the AvSampleBufferDisplayLayer as a contentSource to AVPictureInPictureController, it fails with

The operation couldn’t be completed. (PGPegasusErrorDomain error -1003.)

I can't find any documented error with that domain an error code.

Help?

Please file a bug report about this using the Feedback Assistant. Include a small focused sample project that demonstrates the problem as well. Thanks!

any update on this? It works the first time for me, the second time I enter PiP with an AVSampleBufferDisplayLayer, it fails. (iOS 15, b8)

Error when feeding AVSampleBufferDisplayLayer to AVPictureInPictureController
 
 
Q