viewer: repush buffers

Fixes nested sequences
This commit is contained in:
itsmattkc
2022-07-04 09:53:46 -05:00
parent 0cab96d463
commit 37fad27484
3 changed files with 21 additions and 0 deletions
+14
View File
@@ -376,6 +376,20 @@ Node::ValueHint ViewerOutput::GetConnectedSampleValueHint()
return GetValueHintForInput(kSamplesInput);
}
void ViewerOutput::Value(const NodeValueRow &value, const NodeGlobals &globals, NodeValueTable *table) const
{
if (HasInputWithID(kTextureInput)) {
NodeValue repush = value[kTextureInput];
repush.set_tag(Track::Reference(Track::kVideo, 0).ToString());
table->Push(repush);
}
if (HasInputWithID(kSamplesInput)) {
NodeValue repush = value[kSamplesInput];
repush.set_tag(Track::Reference(Track::kAudio, 0).ToString());
table->Push(value[kSamplesInput]);
}
}
void ViewerOutput::InputValueChangedEvent(const QString &input, int element)
{
if (element == 0) {
+2
View File
@@ -162,6 +162,8 @@ public:
virtual ValueHint GetConnectedSampleValueHint();
virtual void Value(const NodeValueRow& value, const NodeGlobals &globals, NodeValueTable *table) const override;
static const QString kVideoParamsInput;
static const QString kAudioParamsInput;
static const QString kSubtitleParamsInput;
+5
View File
@@ -236,6 +236,11 @@ public:
return tag_;
}
void set_tag(const QString& tag)
{
tag_ = tag;
}
const Node* source() const
{
return from_;