[osg-users] [osgPlugins] osgDB::readImageFile() chooses ffmpeg over libpng

Robert Osfield robert.osfield at gmail.com
Mon May 11 00:35:42 PDT 2015

Hi Paul,

This sounds like a bug, the ffmpeg plugin should not attempt to load a
png file.  What exactly happens?

As for changing the order, simple pre load the png plugin as this will
ensure it gets called first thanks to the Chain-Of-Responsibility
pattern used by it.


On 10 May 2015 at 23:49, Paul <aquawicket at hotmail.com> wrote:
> OSG-3.3.7
> both plugins osgdb_png and osgdb_ffmpeg loaded.
> osgDB::readImageFile("image.png") chooses ffmpeg over libpng to load .png image files.
> I checked ReaderWriterFFmpeg.cpp, and it does not add the .png extention.
> How do I give libpng priority on .png files. Thanks :)
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=63688#63688
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list