viewer: fix issue with waveform on footage

This commit is contained in:
itsmattkc
2022-10-01 09:57:00 -07:00
parent b28495c7a6
commit 895250ab48
+1 -1
View File
@@ -389,7 +389,7 @@ Node::ValueHint ViewerOutput::GetConnectedSampleValueHint()
void ViewerOutput::ConnectedToPreviewEvent()
{
if (Node *connected = GetConnectedOutput(kSamplesInput)) {
if (Node *connected = this->GetConnectedSampleOutput()) {
TimeRange max_range = InputTimeAdjustment(kSamplesInput, -1, TimeRange(0, GetAudioLength()));
TimeRangeList invalid = connected->waveform_cache()->GetInvalidatedRanges(max_range);
for (const TimeRange &r : invalid) {