Changeset 3318
- Timestamp:
- 08/24/04 15:25:45 (9 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/quicktime/QuicktimeImageStream.cpp
r3223 r3318 47 47 48 48 { 49 OpenThreads::ScopedLock<OpenThreads::Mutex> lock(*s_qtMutex);50 osgQuicktime::initQuicktime();49 OpenThreads::ScopedLock<OpenThreads::Mutex> lock(*s_qtMutex); 50 osgQuicktime::initQuicktime(); 51 51 } 52 52 … … 154 154 ThreadCommand cmd = getCmd(); 155 155 156 float currentTime=0.0f;157 156 float currentTime=0.0f; 157 158 158 { 159 159 OpenThreads::ScopedLock<OpenThreads::Mutex> lock(*s_qtMutex); … … 168 168 case THREAD_STOP: 169 169 SetMovieRate(_data->getMovie(),0); 170 osg::notify( NOTICE) << "QT-ImageStream: stop at "<< std::endl;170 osg::notify(INFO) << "QT-ImageStream: stop at "<< std::endl; 171 171 playing = false; 172 172 break; … … 183 183 case THREAD_QUIT: // TODO 184 184 SetMovieRate(_data->getMovie(),0); 185 osg::notify( NOTICE) << "QT-ImageStream: quit" << std::endl;185 osg::notify(INFO) << "QT-ImageStream: quit" << std::endl; 186 186 //playing = false; 187 187 done = true; … … 195 195 MoviesTask(_data->getMovie(),0); 196 196 197 currentTime = _data->getMovieTime();197 currentTime = _data->getMovieTime(); 198 198 } 199 199 200 200 201 if (_lastUpdate!= currentTime) { 201 if (_lastUpdate!= currentTime) 202 { 203 202 204 dirty(); 203 205 _lastUpdate = currentTime; 206 207 if (currentTime>=_data->getMovieDuration()) 208 { 209 if (getLoopingMode()==LOOPING) 210 { 211 rewind(); 212 play(); 213 } 214 else 215 { 216 pause(); 217 } 218 } 219 204 220 } 205 221 206 if (playing) { 222 if (playing) 223 { 207 224 // TODO 208 225 } 209 226 else if (!done) 210 {227 { 211 228 ::usleep(IDLE_TIMEOUT); 212 229 }
