Skip to content

Commit

Permalink
InteractionRecorder: fix thread
Browse files Browse the repository at this point in the history
  • Loading branch information
arturoc committed Mar 10, 2012
1 parent 2339c10 commit fbc2878
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions FaceSubstitution/src/InteractionRecorder.cpp
Expand Up @@ -58,12 +58,10 @@ void InteractionRecorder::threadedFunction(){
while(!uploadQueue.empty()){
string nextUpload = uploadQueue.front();
uploadQueue.pop();
{
ofPtr<ofxVideoRecorder> recorder = recordersQueue.front();
recordersQueue.pop();
unlock();
recorder->close();
}
ofPtr<ofxVideoRecorder> recorder = recordersQueue.front();
recordersQueue.pop();
unlock();
recorder->close();
string ftpCommand = "curl -u " + user+ ":" + password + " -T " + ofToDataPath(ofFilePath::join(folder,nextUpload + ".mjpg")) + " ftp://" + ofFilePath::join(ftpServer , serverPath) + nextUpload + ".mjpg";
cout << endl << ftpCommand << endl;
system(ftpCommand.c_str());
Expand Down

0 comments on commit fbc2878

Please sign in to comment.