mirror of
https://github.com/lostjared/Acid.Cam.v2.Qt.git
synced 2025-12-19 05:10:00 +01:00
added lock
This commit is contained in:
@@ -121,11 +121,11 @@ bool Playback::setVideoCamera(std::string name, int type, int device, int res, c
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Playback::setVector(std::vector<FilterValue> v) {
|
void Playback::setVector(std::vector<FilterValue> v) {
|
||||||
mutex_add.lock();
|
mutex.lock();
|
||||||
// here:
|
// here:
|
||||||
//ac::release_all_objects();
|
//ac::release_all_objects();
|
||||||
current = v;
|
current = v;
|
||||||
mutex_add.unlock();
|
mutex.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long Playback::calcMem() {
|
unsigned long Playback::calcMem() {
|
||||||
@@ -271,9 +271,9 @@ void Playback::setIndexChanged(std::string value) {
|
|||||||
prev_filter = current_filter;
|
prev_filter = current_filter;
|
||||||
current_filter = filter_map[value];
|
current_filter = filter_map[value];
|
||||||
alpha = 1.0;
|
alpha = 1.0;
|
||||||
mutex.unlock();
|
|
||||||
// here:
|
// here:
|
||||||
//ac::release_all_objects();
|
//ac::release_all_objects();
|
||||||
|
mutex.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Playback::setSubFilter(int index) {
|
void Playback::setSubFilter(int index) {
|
||||||
|
|||||||
Reference in New Issue
Block a user