proxy: began work towards creating proxy from video

This commit is contained in:
itsmattkc
2020-05-03 17:09:52 +10:00
parent e4c3b6bf7b
commit 6754feb2f6
16 changed files with 388 additions and 81 deletions
+6 -4
View File
@@ -34,7 +34,7 @@ ConformTask::ConformTask(AudioStreamPtr stream, const AudioRenderingParams& para
void ConformTask::Action()
{
if (stream_->footage()->decoder().isEmpty()) {
emit Failed(QStringLiteral("Stream has no decoder"));
emit Failed(tr("Failed to find decoder to conform audio stream"));
} else {
DecoderPtr decoder = Decoder::CreateFromID(stream_->footage()->decoder());
@@ -42,9 +42,11 @@ void ConformTask::Action()
connect(decoder.get(), &Decoder::IndexProgress, this, &ConformTask::ProgressChanged);
decoder->ConformAudio(&IsCancelled(), params_);
emit Succeeded();
if (decoder->ConformAudio(&IsCancelled(), params_)) {
emit Succeeded();
} else {
emit Failed(QStringLiteral("Failed to conform audio"));
}
}
}