From ddea94b41c7d9f44f0587f5356b64d769c916116 Mon Sep 17 00:00:00 2001 From: OpenSceneGraph git repository Date: Thu, 12 Dec 2019 10:55:35 +0000 Subject: [PATCH] Fixed indentation, replacing tabs with spaces --- src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp b/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp index 068771a70..f468ee81f 100644 --- a/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp +++ b/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp @@ -140,6 +140,9 @@ public: virtual ReadResult readImage(const std::string & filename, const osgDB::ReaderWriter::Options* options) const { const std::string ext = osgDB::getLowerCaseFileExtension(filename); + const std::string pro = osgDB::getServerProtocol(filename); + if (!acceptsExtension(ext) && !acceptsProtocol(pro)) return ReadResult::FILE_NOT_HANDLED; + if (ext=="ffmpeg") return readImage(osgDB::getNameLessExtension(filename),options); osg::ref_ptr parameters(new osgFFmpeg::FFmpegParameters);