[osg-users] Plugins errors for unsupported files
Riccardo Corsi
riccardo.corsi at kairos3d.it
Tue Oct 18 10:18:46 PDT 2016
Hi Robert and all,
I'm currently using the ffmpeg plugin to load some movies - it works just
fine but my application started generating a lot of errors on console like
this:
> FFmpegImageStream::open : av_open_input_file() failed : AVERROR_NOENT
every time an image has to be loaded.
You can reproduce the issue with the modified osgMovie example in attach,
which also loads the textured cow model.
Digging a bit I've seen that's because the file reading mechanism tries to
read from all the already loaded plugins, reagardless of their extension(s)
support.
See here:
https://github.com/openscenegraph/OpenSceneGraph/blob/master/src/osgDB/
Registry.cpp#L1176
I thought that the extension supported by each plugin was checked before
trying to use it.
Besides the annoying errors on the console, wouldn't it be more efficient?
Thanks,
Ricky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161018/1c40c02f/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osgmovie.cpp
Type: text/x-c++src
Size: 28740 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161018/1c40c02f/attachment-0002.cpp>
More information about the osg-users
mailing list