From f910afa359ea96996eafe61e2d61a6e0514045c6 Mon Sep 17 00:00:00 2001 From: Matteo Mestucci Date: Thu, 21 Nov 2019 19:03:39 +0100 Subject: [PATCH] Fixed errors for windows. --- src/ofxVideoRecorder.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/ofxVideoRecorder.cpp b/src/ofxVideoRecorder.cpp index b7bad02..d228cae 100644 --- a/src/ofxVideoRecorder.cpp +++ b/src/ofxVideoRecorder.cpp @@ -53,7 +53,8 @@ void execThread::threadedFunction() { //=============================== ofxVideoDataWriterThread::ofxVideoDataWriterThread() { - thread.setName("Video Thread"); + //thread.setName("Video Thread"); + }; #if defined( TARGET_OSX ) || defined( TARGET_LINUX ) void ofxVideoDataWriterThread::setup(string filePath, lockFreeQueue * q) { @@ -176,7 +177,7 @@ void ofxVideoDataWriterThread::setPipeNonBlocking() { //=============================== ofxAudioDataWriterThread::ofxAudioDataWriterThread() { - thread.setName("Audio Thread"); + //thread.setName("Audio Thread"); }; #if defined( TARGET_OSX ) || defined( TARGET_LINUX ) @@ -654,12 +655,10 @@ bool ofxVideoRecorder::setupCustomOutput(int w, int h, float fps, int sampleRate bool ofxVideoRecorder::runCustomScript(string script) { - stringstream cmd; - cmd << ffmpegLocation << " -y "; - - - ofLogNotice("FFMpeg Command") << script << endl; - ffmpegThread.setup(script); + string cmd = ffmpegLocation + " -y " + script; + + ofLogNotice("FFMpeg Command") << cmd << endl; + ffmpegThread.setup(cmd); bIsInitialized = true;