From ae341a878710f4930f90c933e1bd2dcfde7dcd91 Mon Sep 17 00:00:00 2001 From: slllllala <37529654+dsfdeeeg@users.noreply.github.com> Date: Thu, 7 Nov 2019 14:51:32 +0800 Subject: [PATCH] Pause problem Pause for more than 10 seconds,_status = INVALID; --- src/osgPlugins/ffmpeg/FFmpegImageStream.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osgPlugins/ffmpeg/FFmpegImageStream.cpp b/src/osgPlugins/ffmpeg/FFmpegImageStream.cpp index 0bfd78905..19afed069 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); }