diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-06-14 16:47:10 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-06-14 16:47:10 +0100 |
| commit | 2dd01db2ace9c2356f2e2419e4065e9994b74a65 (patch) | |
| tree | 18028f2e9cfce4bc79021c0e673a6afb8fef8ed8 | |
| parent | 98e9e8998f8fe1f9793610b58bb4e5e8f8145526 (diff) | |
frame fail test
| -rwxr-xr-x | rotord/rotor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rotord/rotor.cpp b/rotord/rotor.cpp index 690b219..2fa5183 100755 --- a/rotord/rotor.cpp +++ b/rotord/rotor.cpp @@ -378,7 +378,7 @@ Image* Video_loader::output(const Frame_spec &frame){ if (isLoaded){ int wanted=((int) (frame.time*frame.framerate))%(player.getNumberOfFrames()-2); //-2?? - player.fetchFrame(frame.w,frame.h,wanted); + if (!player.fetchFrame(frame.w,frame.h,wanted)) { cerr<<"Rotor: frame returned false"<<endl; }; image.setup_fromRGB(frame.w,frame.h,player.pFrameRGB->data[0]); return ℑ } |
