Skip to content

avoid loading corrupted mov file #11

Description

@stephanschulz

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions