mac-virtualcam: Fix CMIO errors due to unsettable properties

This change fixes an issue with the CMIO DAL plugin where the CMIO
subsystem would log multiple errors when starting the virtual camera,
due to certain properties that could not be set (frame rate and format).

For now, we just ignore the assignment, but mark the property as
settable to suppress the error messages that are reported by the CMIO
subsystem.
This commit is contained in:
Fabian Mastenbroek 2022-06-10 14:27:56 +02:00
parent 40cb92a7a5
commit 37c76abf0d
No known key found for this signature in database
GPG Key ID: 405FC6F81F0A7B85

View File

@ -576,7 +576,14 @@
- (BOOL)isPropertySettableWithAddress:(CMIOObjectPropertyAddress)address
{
return false;
switch (address.mSelector) {
case kCMIOStreamPropertyFormatDescription:
case kCMIOStreamPropertyFrameRate:
// Suppress error logs complaining about the application not being able to set the desired format or frame rate.
return true;
default:
return false;
}
}
- (void)setPropertyDataWithAddress:(CMIOObjectPropertyAddress)address