add: add 3 functions. Provide the way to get current audio and video params.

This commit is contained in:
2025-09-14 20:43:56 +08:00
parent a6bff4f610
commit c71b20bb95
7 changed files with 190 additions and 83 deletions
+3 -1
View File
@@ -24,6 +24,7 @@
#include "common/range.h"
#include "config/config.h"
#include "core.h"
#include "common/Current.h"
#include "dialog/markerproperties/markerpropertiesdialog.h"
#include "node/project/sequence/sequence.h"
#include "timeline/timelineundoworkarea.h"
@@ -90,7 +91,8 @@ void TimeBasedWidget::ConnectViewerNode(ViewerOutput *node)
// Set viewer node
ViewerOutput *old = viewer_node_;
viewer_node_ = node;
Current::getInstance().setCurrentVideoParams(viewer_node_->GetVideoParams());
Current::getInstance().setCurrentAudioParams(viewer_node_->GetAudioParams());
if (old) {
// Call potential derivative functions for disconnecting the viewer node
DisconnectNodeEvent(old);