mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-17 04:10:01 +01:00
fixed setting of a video
This commit is contained in:
@@ -117,6 +117,17 @@ bool Playback::setVideoCamera(std::string name, int type, int device, int res, c
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Playback::openVideo(std::string vname) {
|
||||
mutex.lock();
|
||||
ac::v_cap.open(vname);
|
||||
if(ac::v_cap.isOpened() == false) {
|
||||
mutex.unlock();
|
||||
return false;
|
||||
}
|
||||
mutex.unlock();
|
||||
return true;
|
||||
}
|
||||
|
||||
void Playback::setVector(std::vector<FilterValue> v) {
|
||||
mutex.lock();
|
||||
// here:
|
||||
|
||||
Reference in New Issue
Block a user