From 360021a09dbda98f1ca33a4518bfa6736d710ede Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Tue, 22 Dec 2015 15:59:26 +0000 Subject: [PATCH] Fix deprecated `ofVideoPlayer` method calls --- src/Sources/VideoSource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;