From 9586771abefd5cf8ca8cd7e2e8006fbcd12bae9b Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks Date: Fri, 17 Oct 2014 23:05:13 +0200 Subject: [PATCH] Move remove update listener part from raspberry pi platform part --- src/Sources/VideoSource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;