diff --git a/src/osgPlugins/ffmpeg/FFmpegImageStream.cpp b/src/osgPlugins/ffmpeg/FFmpegImageStream.cpp index c03a8f114..69826c456 100644 --- a/src/osgPlugins/ffmpeg/FFmpegImageStream.cpp +++ b/src/osgPlugins/ffmpeg/FFmpegImageStream.cpp @@ -303,6 +303,8 @@ void FFmpegImageStream::cmdPlay() if (! m_decoder->video_decoder().isRunning()) m_decoder->video_decoder().start(); + _lastUpdateTS = osg::Timer::instance()->tick(); + m_decoder->video_decoder().pause(false); m_decoder->audio_decoder().pause(false); diff --git a/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp b/src/osgPlugins/ffmpeg/ReaderWriterFFmpeg.cpp index 068771a70..8cd369a6d 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);