mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-17 04:10:01 +01:00
updated to use DSHOW
This commit is contained in:
@@ -70,7 +70,11 @@ bool Playback::setVideoCamera(std::string name, int type, int device, int res, c
|
||||
device_num = device;
|
||||
mutex.lock();
|
||||
//#if defined(__linux__) || defined(__APPLE__)
|
||||
#ifdef _WIN32
|
||||
capture.open(cv::CAP_DSHOW+device);
|
||||
#else
|
||||
capture.open(device);
|
||||
#endif
|
||||
if(!capture.isOpened()) {
|
||||
mutex.unlock();
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user