Commit bea33b99 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Fix multiple crashs dut to badly initialized or referenced variables.

parent 1f35d40b
......@@ -98,9 +98,9 @@ bool VideoPage::validatePage()
QVariant projectHeight( ui.spinBoxVideoHeight->value() );
QVariant projectWidth( ui.spinBoxVideoWidth->value() );
sManager->setValue( "project/VideoProjectFPS", projectFps, SettingsManager::Project );
sManager->setValue( "project/VideoProjectHeight", projectHeight, SettingsManager::Project );
sManager->setValue( "project/VideoProjectWidth", projectWidth, SettingsManager::Project );
sManager->setValue( "video/VLMCOutputFPS", projectFps, SettingsManager::Project );
sManager->setValue( "video/VideoProjectHeigh", projectHeight, SettingsManager::Project );
sManager->setValue( "video/VideoProjectWidth", projectWidth, SettingsManager::Project );
sManager->commit( SettingsManager::Project );
return true;
......
......@@ -139,7 +139,7 @@ MetaDataWorker::metaDataAvailable()
}
else
{
double fps = VLMC_GET_DOUBLE( "video/VideoProjectFPS" );
double fps = VLMC_PROJECT_GET_DOUBLE( "video/VLMCOutputFPS" );
m_media->setFps( fps );
}
m_media->setLength( m_mediaPlayer->getLength() );
......
......@@ -348,19 +348,19 @@ void* WorkflowRenderer::getUnlockCallback()
quint32
WorkflowRenderer::width() const
{
return VLMC_GET_UINT( "video/VideoProjectWidth" );
return VLMC_PROJECT_GET_UINT( "video/VideoProjectWidth" );
}
quint32
WorkflowRenderer::height() const
{
return VLMC_GET_UINT( "video/VideoProjectHeight" );
return VLMC_PROJECT_GET_UINT( "video/VideoProjectHeight" );
}
float
WorkflowRenderer::outputFps() const
{
return VLMC_GET_DOUBLE( "video/VLMCOutPutFPS" );
return VLMC_PROJECT_GET_DOUBLE( "video/VLMCOutputFPS" );
}
bool
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment