export: fixed bug that failed to export video if using a different export resolution

This commit is contained in:
itsmattkc
2020-04-23 02:00:49 +10:00
parent a1ec48b978
commit fef29db754
5 changed files with 16 additions and 32 deletions
+2 -3
View File
@@ -69,9 +69,7 @@ Exporter::Exporter(ViewerOutput *viewer_node,
// Create color processor
color_processor_ = ColorProcessor::Create(color_manager,
color_manager->GetReferenceColorSpace(),
params.ocio_display(),
params.ocio_view(),
params.ocio_look());
params.color_transform());
}
}
@@ -326,6 +324,7 @@ void Exporter::VideoHashesComplete()
// Set video backend to render mode but NOT hash or download
video_backend_->SetOperatingMode(VideoRenderWorker::kRenderOnly);
video_backend_->SetOnlySignalLastFrameRequested(false);
video_backend_->SetFrameGenerationParams(params_.video_params().width(), params_.video_params().height(), transform_);
connect(video_backend_, &VideoRenderBackend::GeneratedFrame, this, &Exporter::FrameRendered);