mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 11:40:44 +08:00
Merge pull request #17345 from alalek:build_fix_mac_warnings
This commit is contained in:
commit
d4a9c731ff
@ -383,7 +383,7 @@ int CvCaptureCAM::startCaptureDevice(int cameraNum) {
|
||||
[mCaptureDecompressedVideoOutput setVideoSettings:pixelBufferOptions];
|
||||
mCaptureDecompressedVideoOutput.alwaysDiscardsLateVideoFrames = YES;
|
||||
|
||||
#if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) && !TARGET_OS_MACCATALYST
|
||||
#if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR) && (!defined(TARGET_OS_MACCATALYST) || !TARGET_OS_MACCATALYST)
|
||||
mCaptureDecompressedVideoOutput.minFrameDuration = CMTimeMake(1, 30);
|
||||
#endif
|
||||
|
||||
|
@ -299,7 +299,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
#if !TARGET_OS_MACCATALYST
|
||||
#if (!defined(TARGET_OS_MACCATALYST) || !TARGET_OS_MACCATALYST)
|
||||
// Deprecated in 6.0; here for backward compatibility
|
||||
if ([self.captureVideoPreviewLayer isOrientationSupported])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user