Only interact with the AVSampleBufferDisplayLayer on the main thread

This commit is contained in:
Cameron Gutman
2018-06-01 00:31:41 -07:00
parent ec0124e255
commit 04b2fccaef
2 changed files with 18 additions and 7 deletions

View File

@@ -324,6 +324,7 @@ void ClLogMessage(const char* format, ...)
LiInitializeVideoCallbacks(&_drCallbacks);
_drCallbacks.setup = DrDecoderSetup;
_drCallbacks.submitDecodeUnit = DrSubmitDecodeUnit;
_drCallbacks.capabilities = CAPABILITY_DIRECT_SUBMIT;
// RFI doesn't work properly with HEVC on iOS 11 with an iPhone SE (at least)
// It doesnt work on macOS either, tested with Network Link Conditioner.