Show
Ignore:
Timestamp:
03/08/09 17:48:48 (4 years ago)
Author:
robert
Message:

Fixed thread exit problems

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/ffmpeg/FFmpegImageStream.cpp

    r9861 r9869  
    4343 
    4444    quit(true); 
     45     
     46    osg::notify(osg::NOTICE)<<"Have done quit"<<std::endl; 
     47 
     48    // release athe audio streams to make sure that the decoder doesn't retain any external 
     49    // refences. 
     50    getAudioStreams().clear(); 
    4551 
    4652    // destroy the decoder and associated threads 
     
    131137 
    132138    // Close the decoder (i.e. flush the decoder packet queues) 
    133     m_decoder->close(); 
     139    m_decoder->close(waitForThreadToExit); 
    134140} 
    135141 
     
    198204        osg::notify(osg::WARN) << "FFmpegImageStream::run : unhandled exception" << std::endl; 
    199205    } 
     206     
     207    osg::notify(osg::NOTICE)<<"Finished FFmpegImageStream::run()"<<std::endl; 
    200208} 
    201209