OBS Studio - Free and open source software for live streaming and screen recording
mac-videotoolbox: Refactor implementation
Existing code made use of macros which broke parsing in Xcode and complicated debugging as crucial code was executed within macros and not actual source code. Use of mutable CoreFramework data structures (which were never mutated) is replaced by use of faster non-mutable variants. When an allocator needs to be used, `kCFAllocatorDefault` is specified explicitly. VideoToolbox session properties are also set in bulk instead of multiple consecutive calls. Also simplifies detection of Apple Silicon hosts to make code more readable.
P
PatTheMav committed
80616520516970d3228ee98c452af1ee718d19aa
Parent: 09c2a32