From 1cefa65794b92b2a0d82e4396a25f66a40a4ace1 Mon Sep 17 00:00:00 2001 From: SuslikV Date: Fri, 27 Dec 2019 15:47:28 +0200 Subject: [PATCH] Skip painter transform by using shortcut Fixes issue for clip being rendered as black rectangle even if the has_video at the frame is set to zero. Co-authored-by: Frank Dana --- src/Timeline.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Timeline.cpp b/src/Timeline.cpp index 86ef2911..60e6ac81 100644 --- a/src/Timeline.cpp +++ b/src/Timeline.cpp @@ -379,8 +379,9 @@ void Timeline::add_layer(std::shared_ptr new_frame, Clip* source_clip, in } - // Skip out if only an audio frame - if (!source_clip->Waveform() && !source_clip->Reader()->info.has_video) + // Skip out if video was disabled or only an audio frame (no visualisation in use) + if (source_clip->has_video.GetInt(clip_frame_number) == 0 || + (!source_clip->Waveform() && !source_clip->Reader()->info.has_video)) // Skip the rest of the image processing for performance reasons return;