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

Fixed thread exit problems

Files:
1 modified

Legend:

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

    r9865 r9869  
    3232FFmpegDecoder::~FFmpegDecoder() 
    3333{ 
    34     close(); 
     34    close(true); 
    3535} 
    3636 
     
    124124 
    125125 
    126 void FFmpegDecoder::close() 
     126void FFmpegDecoder::close(bool waitForThreadToExit) 
    127127{ 
    128128    flushAudioQueue(); 
    129129    flushVideoQueue(); 
     130     
     131    m_audio_decoder.close(waitForThreadToExit); 
     132    m_video_decoder.close(waitForThreadToExit); 
    130133} 
    131134