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:
parent
40cb92a7a5
commit
37c76abf0d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user