viewer: receive audio invalidation signal

Invalidates and runs cache task correctly even if there are no video
nodes connected.
This commit is contained in:
itsmattkc
2020-05-30 02:50:30 +10:00
parent 8299acf547
commit c1ed84b90e
5 changed files with 19 additions and 8 deletions
+2 -1
View File
@@ -58,7 +58,8 @@ ViewerOutput::ViewerOutput()
// Create UUID for this node
uuid_ = QUuid::createUuid();
connect(this, &ViewerOutput::LengthChanged, &video_frame_cache_, &FrameHashCache::SetLength);
connect(this, &ViewerOutput::LengthChanged, &video_frame_cache_, &PlaybackCache::SetLength);
connect(this, &ViewerOutput::LengthChanged, &audio_playback_cache_, &PlaybackCache::SetLength);
}
Node *ViewerOutput::copy() const