MediaInput: Rename streams access methods.

Change MediaInput::footage() to MediaInput::stream() and
MediaInput::SetFootage() to MediaInput::SetStream() as they access
streams not footage.

Also update all instances of access methods to reflect this change.
This commit is contained in:
Thomas Wilshaw
2020-10-19 15:50:36 +01:00
parent 56acbfd06c
commit 4ddc659335
7 changed files with 16 additions and 16 deletions
+3 -3
View File
@@ -40,14 +40,14 @@ QList<Node::CategoryID> MediaInput::Category() const
return {kCategoryInput};
}
StreamPtr MediaInput::footage()
StreamPtr MediaInput::stream()
{
return footage_input_->get_standard_value().value<StreamPtr>();
}
void MediaInput::SetFootage(StreamPtr f)
void MediaInput::SetStream(StreamPtr s)
{
footage_input_->set_standard_value(QVariant::fromValue(f));
footage_input_->set_standard_value(QVariant::fromValue(s));
}
bool MediaInput::IsMedia() const
+2 -2
View File
@@ -40,8 +40,8 @@ public:
virtual QList<CategoryID> Category() const override;
StreamPtr footage();
void SetFootage(StreamPtr f);
StreamPtr stream();
void SetStream(StreamPtr s);
virtual bool IsMedia() const override;