Commit 3d30bc5a authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Fixing but in core config getter

parent 52a5ef4b
......@@ -939,27 +939,34 @@ CVAStruct CVACoreImpl::GetCoreConfiguration( const bool bFilterEnabled ) const
VA_NO_REENTRANCE;
VA_CHECK_INITIALIZED;
CVAStruct oCoreConfig;
if( bFilterEnabled )
{
CVAStruct oFilteredCoreConfig;
CVAStruct::const_iterator cit = m_oCoreConfig.GetStruct().Begin();
while( cit != m_oCoreConfig.GetStruct().End() )
{
const CVAStructValue& oVal( cit++->second );
const std::string sKey( cit->first );
const CVAStructValue& oVal( cit->second );
++cit;
if( oVal.IsStruct() )
{
const CVAStruct& oSection( oVal.GetStruct() );
if( oSection.HasKey( "enabled" ) )
if( bool( oSection[ "enabled" ] ) == false )
continue; // Only skip if explicitly not enabled
oFilteredCoreConfig[ cit->first ] = oVal;
oCoreConfig[ sKey ] = oVal;
}
}
}
else
{
return m_oCoreConfig.GetStruct();
oCoreConfig = m_oCoreConfig.GetStruct();
}
return oCoreConfig;
}
CVAStruct CVACoreImpl::GetHardwareConfiguration() const
......
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