Merge pull request #395 from SuslikV/patch-4

Skip painter transform for the Clip when video disabled
This commit is contained in:
Jonathan Thomas
2020-01-03 14:51:02 -06:00
committed by GitHub

View File

@@ -372,8 +372,9 @@ void Timeline::add_layer(std::shared_ptr<Frame> 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;