Permalink
Browse files

Deprecate ofVideoPlayer::idleMovie().

Add changelog entry. Update examples. Test deprecation triggering and proper operation on opencvExample. Relevant issue: #484
  • Loading branch information...
1 parent b9cc17c commit 855f9e22e400d3ceec81339fd9a74cc4036d6f4e @bilderbuchi bilderbuchi committed Jul 27, 2012
View
@@ -1,3 +1,5 @@
+ofVideoPlayer::idleMovie() is deprecated. Use ofVideoPlayer::update() instead
+
---------------------------------------------------------------
.oooo. .oooo. ooooooooo .o
d8P'`Y8b d8P'`Y8b d"""""""8' o888
@@ -30,7 +30,7 @@ void testApp::update(){
vidGrabber.grabFrame();
bNewFrame = vidGrabber.isFrameNew();
#else
- vidPlayer.idleMovie();
+ vidPlayer.update();
bNewFrame = vidPlayer.isFrameNew();
#endif
@@ -72,7 +72,7 @@ void testApp::setup(){
//--------------------------------------------------------------
void testApp::update(){
vidGrabber.grabFrame();
- fingerMovie.idleMovie();
+ fingerMovie.update();
// This just
maskFbo.begin();
@@ -12,7 +12,7 @@ void testApp::setup(){
//--------------------------------------------------------------
void testApp::update(){
- fingerMovie.idleMovie();
+ fingerMovie.update();
}
//--------------------------------------------------------------
@@ -36,8 +36,8 @@ class ofVideoPlayer : public ofBaseVideoPlayer,public ofBaseVideoDraws{
void closeMovie();
void close();
- void update(); //same as idleMovie
- void idleMovie(); // rename to updateMovie?
+ void update();
+ OF_DEPRECATED_MSG("Use ofVideoPlayer::update() instead", void idleMovie());
void play();
void stop();

0 comments on commit 855f9e2

Please sign in to comment.