diff options
| author | Comment <tim@gray.(none)> | 2013-09-08 13:11:02 +0100 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-09-08 13:11:02 +0100 |
| commit | 1ff03ea63d79549db86422837f47916a42f23eb9 (patch) | |
| tree | 1631546f60cb830749d6fe64d8af0911d9afcfe5 /rotord/src/rotor.cpp | |
| parent | 512a2738e9f2fc74f109dabada357cc20c2a3412 (diff) | |
refactoring utils
Diffstat (limited to 'rotord/src/rotor.cpp')
| -rwxr-xr-x | rotord/src/rotor.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rotord/src/rotor.cpp b/rotord/src/rotor.cpp index 8905a6e..ee18dbd 100755 --- a/rotord/src/rotor.cpp +++ b/rotord/src/rotor.cpp @@ -91,10 +91,10 @@ bool Video_loader::load(const string &_filename){ isLoaded=player.open(uri); if (isLoaded){ logger.information("Video_loader loaded "+_filename+": "\ - +ofToString(player.getNumberOfFrames())+" frames, "\ - +ofToString(player.getFrameRate())+" fps, "\ - +ofToString(player.getWidth())+"x"+ofToString(player.getHeight())\ - +", channels:"+ofToString(player.getNumberOfChannels())); + +toString(player.getNumberOfFrames())+" frames, "\ + +toString(player.getFrameRate())+" fps, "\ + +toString(player.getWidth())+"x"+toString(player.getHeight())\ + +", channels:"+toString(player.getNumberOfChannels())); return true; } @@ -124,7 +124,7 @@ Image* Video_loader::output(const Frame_spec &frame){ if (wanted!=lastframe){ if (!player.fetchFrame(frame.w,frame.h,wanted)) { //seek fail Logger& logger = Logger::get("Rotor"); - logger.error("Video_loader failed to seek frame "+ofToString(wanted)+" of "+attributes["filename"]->value); + logger.error("Video_loader failed to seek frame "+toString(wanted)+" of "+attributes["filename"]->value); if (image.w>0) return ℑ //just return the previous frame if possible else return nullptr; |
