diff --git a/src/Sources/VideoSource.cpp b/src/Sources/VideoSource.cpp index b7397e8..b8ca1de 100644 --- a/src/Sources/VideoSource.cpp +++ b/src/Sources/VideoSource.cpp @@ -33,11 +33,11 @@ namespace ofx { texture = &(omxPlayer->getTextureReference()); #else videoPlayer = new ofVideoPlayer(); - videoPlayer->loadMovie(filePath); + videoPlayer->load(filePath); videoPlayer->setLoopState(OF_LOOP_NORMAL); videoPlayer->setVolume(VideoSource::enableAudio ? 1.0f : 0.0f); videoPlayer->play(); - texture = &(videoPlayer->getTextureReference()); + texture = &(videoPlayer->getTexture()); ofAddListener(ofEvents().update, this, &VideoSource::update); #endif loaded = true;