diff options
Diffstat (limited to 'rotord/rotor.cpp')
| -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 ℑ } |
