Skip to content

Commit

Permalink
Interaction recorder: discard videos with less than 60 frames
Browse files Browse the repository at this point in the history
  • Loading branch information
arturoc committed Mar 10, 2012
1 parent 4e70d00 commit dcd190f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions FaceSubstitution/src/InteractionRecorder.cpp
Expand Up @@ -47,8 +47,13 @@ void InteractionRecorder::changeFace(string face){
void InteractionRecorder::close(){
cout << endl << "closing InteractionRecorder " << recordedVideoPath << " with " << framesRecorded << " frames" << endl;
lock();
recordersQueue.push(recorder);
uploadQueue.push(recordedVideoPath);
if(framesRecorded>60){
recordersQueue.push(recorder);
uploadQueue.push(recordedVideoPath);
}else{
recorder->discard();
delete recorder;
}
unlock();
upload.signal();
}
Expand Down

0 comments on commit dcd190f

Please sign in to comment.