diff --git a/src/Sources/VideoSource.cpp b/src/Sources/VideoSource.cpp index ca15e04..4ccbdb4 100644 --- a/src/Sources/VideoSource.cpp +++ b/src/Sources/VideoSource.cpp @@ -46,13 +46,13 @@ namespace ofx { } void VideoSource::clear() { - ofRemoveListener(ofEvents().update, this, &VideoSource::update); texture = NULL; #ifdef TARGET_RASPBERRY_PI omxPlayer->close(); delete omxPlayer; omxPlayer = NULL; #else + ofRemoveListener(ofEvents().update, this, &VideoSource::update); videoPlayer->stop(); videoPlayer->close(); delete videoPlayer;