viewer: use label instead of media name

This commit is contained in:
itsmattkc
2021-01-09 10:38:04 +11:00
parent 181235f6ce
commit 441a459774
6 changed files with 29 additions and 35 deletions
+2 -9
View File
@@ -216,7 +216,7 @@ void ViewerOutput::VerifyLength()
if (video_length.isNull() && texture_input_->IsConnected()) {
NodeValueTable t = traverser.GenerateTable(texture_input_->GetConnectedNode(), 0, 0);
video_length = t.Get(NodeValue::kRational, "length").value<rational>();
video_length = t.Get(NodeValue::kRational, QStringLiteral("length")).value<rational>();
}
video_frame_cache_.SetLength(video_length);
@@ -227,7 +227,7 @@ void ViewerOutput::VerifyLength()
if (audio_length.isNull() && samples_input_->IsConnected()) {
NodeValueTable t = traverser.GenerateTable(samples_input_->GetConnectedNode(), 0, 0);
audio_length = t.Get(NodeValue::kRational, "length").value<rational>();
audio_length = t.Get(NodeValue::kRational, QStringLiteral("length")).value<rational>();
}
audio_playback_cache_.SetLength(audio_length);
@@ -277,13 +277,6 @@ void ViewerOutput::Retranslate()
}
}
void ViewerOutput::set_media_name(const QString &name)
{
media_name_ = name;
emit MediaNameChanged(media_name_);
}
void ViewerOutput::BeginOperation()
{
operation_stack_++;