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); }