worked on thread safety with tasks

This commit is contained in:
itsmattkc
2019-08-09 12:31:02 +10:00
parent c0f6ee534a
commit 1616166fbc
9 changed files with 137 additions and 27 deletions
+2 -2
View File
@@ -34,11 +34,11 @@ ProbeTask::ProbeTask(FootagePtr footage) :
bool ProbeTask::Action()
{
footage_->Lock();
footage_->LockDeletes();
Decoder::ProbeMedia(footage_.get());
footage_->Unlock();
footage_->UnlockDeletes();
return true;
}