Hi Robert,

I'm getting a crash on exit if I quit after letting it play for a while though (but if I quit after just a few seconds it doesn't crash). I'll investigate that and get back to you.

Ok, here's the stack trace:

ot11-OpenThreadsd.dll!OpenThreads::Mutex::lock()  Line 111
osgdb_ffmpegd.dll!OpenThreads::ScopedLock<OpenThreads::Mutex>::ScopedLock<OpenThreads::Mutex>(OpenThreads::Mutex & m={...}) Line 31 osgdb_ffmpegd.dll!osgFFmpeg::FFmpegImageStream::publishNewFrame(const osgFFmpeg::FFmpegDecoderVideo & __formal={...}, void * user_data=0x01f5d770) Line 270 osgdb_ffmpegd.dll!osgFFmpeg::FFmpegDecoderVideo::publishFrame(const double delay=0.038689673907654765) Line 279
osgdb_ffmpegd.dll!osgFFmpeg::FFmpegDecoderVideo::decodeLoop()  Line 172 
osgdb_ffmpegd.dll!osgFFmpeg::FFmpegDecoderVideo::run()  Line 104

Inside OpenThreads::Mutex::lock() (Win32Mutex.cpp, line 111), the pd->_cs variable seems to have been freed previously (its value is 0xfeeefeee which is a placeholder value). It seems to me that the FFmpegDecoderVideo decode loop is still running when it should have been shut down sooner.

I'm not familiar with the code, but if you want me to dig deeper I can probably check it out in a few days. But if you have an idea how to fix it right now go ahead.

Thanks,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to