Skip to content

Commit

Permalink
🚨 Fix build (Mac: the webcam types I tried are for phones only)
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesFouchy committed Aug 14, 2023
1 parent a3b3ae5 commit c30c5ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/webcam_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ static auto enumerate_devices(REFGUID category, IEnumMoniker** ppEnum) -> HRESUL
return hr;
}

auto webcam_info::grab_all_webcams_infos_impl() -> std::vector<Info>
auto grab_all_webcams_infos_impl() -> std::vector<Info>
{
std::vector<Info> list_webcam_info{};
HRESULT hr = CoInitializeEx(nullptr, COINIT_MULTITHREADED);
Expand Down
8 changes: 1 addition & 7 deletions src/webcam_info.mm
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@ auto grab_all_webcams_infos_impl() -> std::vector<Info> {
AVCaptureDeviceDiscoverySession *discoverySession =
[AVCaptureDeviceDiscoverySession
discoverySessionWithDeviceTypes:@[
AVCaptureDeviceTypeBuiltInWideAngleCamera,
AVCaptureDeviceTypeBuiltInUltraWideCamera,
AVCaptureDeviceTypeBuiltInTelephotoCamera,
AVCaptureDeviceTypeBuiltInDualCamera,
AVCaptureDeviceTypeBuiltInDualWideCamera,
AVCaptureDeviceTypeBuiltInTripleCamera,
AVCaptureDeviceTypeContinuityCamera
AVCaptureDeviceTypeBuiltInWideAngleCamera
]
mediaType:AVMediaTypeVideo
position:AVCaptureDevicePositionUnspecified];
Expand Down

0 comments on commit c30c5ee

Please sign in to comment.