From 91f7c55a2cb2c5523922b5c23001a0974b1502c6 Mon Sep 17 00:00:00 2001 From: Helge Norberg Date: Tue, 13 Sep 2016 17:55:49 +0200 Subject: [PATCH] [framerate_producer] Fixed frame repeat issue that caused the first frame to be empty when playing half framerate clips --- core/producer/framerate/framerate_producer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/producer/framerate/framerate_producer.cpp b/core/producer/framerate/framerate_producer.cpp index dc40ea974..7b4fb3179 100644 --- a/core/producer/framerate/framerate_producer.cpp +++ b/core/producer/framerate/framerate_producer.cpp @@ -374,7 +374,7 @@ private: { user_speed_.fetch_and_tick(); - if (output_repeat_ && ++output_frame_ % output_repeat_) + if (output_repeat_ && output_frame_++ % output_repeat_) { auto frame = draw_frame::still(last_frame()); -- 2.39.5