Re: [osg-users] Plugins errors for unsupported files

2016-10-19 Thread Riccardo Corsi
Hi Robert, maybe I wasn't clear in my previous message. I'm not suggesting to remove the code, only to move it down few lines, and possibly inside an if block which checks if the video is loaded from internet (filename containing an URL path). That should cover the use case of streaming the

Re: [osg-users] Plugins errors for unsupported files

2016-10-19 Thread Robert Osfield
Hi Riccardo, Just removing a code block might fix the problem you are seeing but it'll break things for others so isn't an appropriate thing to do as we'll just end up flip flopping between who's code we break today. I haven't looked into the error itself yet, but my inclination would be to see

Re: [osg-users] Plugins errors for unsupported files

2016-10-19 Thread Riccardo Corsi
Hi Robert, right, the ffmpeg plugin is trying to load files without knowing if they are of a supported format. The related code is here: https://github.com/openscenegraph/OpenSceneGraph/blob/master/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp#L149 The comment explains something related to videos

Re: [osg-users] Plugins errors for unsupported files

2016-10-18 Thread Robert Osfield
Hi Ricky, The OSG uses the Chain Of Responsibility Design Pattern for the plugins - so it's the plugins themselves to decide what formats they can load. This enables them to handle multiple formats if they can support it. From the description it sounds like the ffmpeg isn't doing a good enough