ofxThreadedVideo icon indicating copy to clipboard operation
ofxThreadedVideo copied to clipboard

avoid loading corrupted mov file

Open stephanschulz opened this issue 9 years ago • 0 comments

Hi. I was hoping to find a way to avoid loading .mov files if they are corrupted. This means it has no dimension and length info when i look at it in the OS X file window.

I noticed the addon hast this call:

video->loadMovie(filePathName);
video->getLoadFail();

But this line does not return anything if the file is corrupted. Actually we do not even get to that line of the code. Instead we get this console print. error message:

[ error ] ofQuickTimePlayer: createMovieFromPath(): couldn't load movie, NewMovieFromFile failed: OSErr -2048
[ error ] Could not load: 3 + loadMovie(../../../recordings/2016-04-27-11-11-31-102.mov)

Do you think there is a way to catch this message through the addon and prevent the file from being used?

thanks.

stephanschulz avatar Apr 28 '16 18:04 stephanschulz