Hello Robert:

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.


Take care

Garrett

On Jan 11, 2010, at 12:57 PM, Robert Osfield wrote:

HI Garret,


Just did a test on making the ffmpeg thread safe. You should not have to
modify the plugin but here is a cut and past:
..
To me this needs to be done at the application level. doing this will automatically allow for thread safe access to parts of libavcodec that need it. ffmpeg calls the callback method and passes the different ops it would
like you to do.

Would it not just be appropriate to stick this mutex set up in the
plugin?  Would there be any draw back in this?

I would prefer to provide a plugin that wraps up all the details
within the plugin and not be tightly coupled with application code.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to