HI Garret, On Mon, Jan 11, 2010 at 6:28 PM, Garrett Potts <[email protected]> wrote: > You could wrap it up in there. Is there a singleton entry point to OSG > plugins? If there is a singleton access point that is similar to something > like a plugin init then you could actually put it in the plugins > initialization code.
The plugins work via registering their subclass from ReaderWriter to the osgDB::Registry singleton so there will be a single ReaderWriterFFmpeg registered. Therefore it should be safe to register the callbacks in the constructor. The only area where I think there might be conflict is if you wanted to mix user code with ffmpeg and the OSG's plugin where each one was trying to set the callback for the mutex. As long as both are initialized at the same time (by a multi-threaded app initialization) and they both a consistent then this probably isn't a big issue. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

