Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid loading corrupted mov file #11

Open
stephanschulz opened this issue Apr 28, 2016 · 0 comments
Open

avoid loading corrupted mov file #11

stephanschulz opened this issue Apr 28, 2016 · 0 comments

Comments

@stephanschulz
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant