From fcafd4db06a59b47d52e57f8298dd0972373d0ba Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 1 Jun 2007 19:19:23 +0000 Subject: [PATCH] From Stephan Huber, "attached you'll find the modified ImageStream and a small fix for QuicktimeImageStream to disable debug-logging :)" --- include/osg/ImageStream | 3 ++- src/osgPlugins/quicktime/QuicktimeImageStream.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/osg/ImageStream b/include/osg/ImageStream index 4ae14822a..fe3b351dd 100644 --- a/include/osg/ImageStream +++ b/include/osg/ImageStream @@ -63,7 +63,7 @@ class OSG_EXPORT ImageStream : public Image LOOPING }; - void setLoopingMode(LoopingMode mode) { _loopingMode = mode; } + void setLoopingMode(LoopingMode mode) { _loopingMode = mode; applyLoopingMode(); } LoopingMode getLoopingMode() const { return _loopingMode; } @@ -78,6 +78,7 @@ class OSG_EXPORT ImageStream : public Image virtual void update() {} protected: + virtual void applyLoopingMode() {} virtual ~ImageStream() {} diff --git a/src/osgPlugins/quicktime/QuicktimeImageStream.cpp b/src/osgPlugins/quicktime/QuicktimeImageStream.cpp index dbf9e0fbd..a099687fe 100644 --- a/src/osgPlugins/quicktime/QuicktimeImageStream.cpp +++ b/src/osgPlugins/quicktime/QuicktimeImageStream.cpp @@ -222,6 +222,6 @@ void QuicktimeImageStream::run() void QuicktimeImageStream::applyLoopingMode() { - osg::notify(osg::ALWAYS) << "applying loop mode " << getLoopingMode() << std::endl; + osg::notify(osg::INFO) << "applying loop mode " << getLoopingMode() << std::endl; _data->setLooping(getLoopingMode() == osg::ImageStream::LOOPING); }