- Timestamp:
- 03/08/09 17:48:48 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/ffmpeg/FFmpegDecoderVideo.cpp
r9861 r9869 35 35 osg::notify(osg::NOTICE)<<"Destructing FFmpegDecoderVideo..."<<std::endl; 36 36 37 37 38 if (isRunning()) 38 39 { 39 40 m_exit = true; 41 #if 0 42 while(isRunning()) { OpenThreads::YieldCurrentThread(); } 43 #else 40 44 join(); 45 #endif 41 46 } 42 47 … … 102 107 } 103 108 109 110 void FFmpegDecoderVideo::close(bool waitForThreadToExit) 111 { 112 m_exit = true; 113 114 if (isRunning() && waitForThreadToExit) 115 { 116 while(isRunning()) { OpenThreads::Thread::YieldCurrentThread(); } 117 } 118 } 104 119 105 120
