OBS Studio - Free and open source software for live streaming and screen recording
mac-videotoolbox: Fix handling of unsuccessful encoder creation
When an encoder was not created in create_encoder, the appropriate OSStatus value is returned but the calling code expects a boolean return value. The negative OSStatus code sent on error is thus interpreted as a truthy value and the error is not detected. Changing the call signature to correctly return an OSStatus (and change the caller to detect error situations) fixes this.
P
PatTheMav committed
63a131ce22d14f71949d3181e1266fe711b233dd
Parent: 859321b
Committed by Lain <lain@obsproject.com>
on 12/2/2023, 11:49:24 PM