Added several conditions and checks to track what is happening in the 'while' loop. The goal being to avoid to get stuck in an infinite loop. For example, if writing to the PIPE fails we exit the loop. This in order to prevent to fill up the memory and crash the app.
Added several conditions and checks to track what is happening in the 'while' loop. The goal being to avoid to get stuck in an infinite loop. For example, if writing to the PIPE fails we exit the loop. This in order to prevent to fill up the memory and crash the app.

kmichaelfox/ofxVideoRecorder,smallfly/ofxVideoRecorder,DomAmato/ofxVideoRecorder,asus4/ofxVideoRecorder,thelastbaldwin/ofxVideoRecorder,galsasson/ofxVideoRecorder