mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-05 14:30:03 +01:00
set device_num to current device
This commit is contained in:
@@ -38,6 +38,7 @@ void Playback::setVideo(cv::VideoCapture cap, cv::VideoWriter wr, bool record) {
|
||||
|
||||
bool Playback::setVideoCamera(int device, int res, cv::VideoWriter wr, bool record) {
|
||||
mode = MODE_CAMERA;
|
||||
device_num = device;
|
||||
mutex.lock();
|
||||
if(capture.isOpened()) {
|
||||
#if defined(__linux__) || defined(_WIN32)
|
||||
|
||||
Reference in New Issue
Block a user