summaryrefslogtreecommitdiff
path: root/rotord/src/rotor.cpp
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-09-08 13:11:02 +0100
committerComment <tim@gray.(none)>2013-09-08 13:11:02 +0100
commit1ff03ea63d79549db86422837f47916a42f23eb9 (patch)
tree1631546f60cb830749d6fe64d8af0911d9afcfe5 /rotord/src/rotor.cpp
parent512a2738e9f2fc74f109dabada357cc20c2a3412 (diff)
refactoring utils
Diffstat (limited to 'rotord/src/rotor.cpp')
-rwxr-xr-xrotord/src/rotor.cpp10
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 &image; //just return the previous frame if possible
else return nullptr;