movie keeps looping

I want to play a movie only once.
And since i want to perform operations on the pixels i want each frame to be a new frame of the movie. In other words i don’t care about the movie speed.
However my movie keeps looping:

.h

  
        ofVideoPlayer movie;  
        int movieFrameCount = 0;  

setup

  
    movie.loadMovie("the_mother_road.mp4");  
    movie.setLoopState(OF_LOOP_NONE);  

update

  
    if(!movie.getIsMovieDone()) {  
        movie.setFrame(movieFrameCount+=25);  
        movie.update();  
    } else {  
        printf("done");  
    }  

how can i make it stop after it played once?