Skip to content

Commit

Permalink
[settings] store default centermixlevel
Browse files Browse the repository at this point in the history
  • Loading branch information
Rechi committed Oct 10, 2018
1 parent b8ab617 commit 15030dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xbmc/settings/MediaSettings.cpp
Expand Up @@ -110,6 +110,8 @@ bool CMediaSettings::Load(const TiXmlNode *settings)
XMLUtils::GetBoolean(pElement, "nonlinstretch", m_defaultVideoSettings.m_CustomNonLinStretch);
if (!XMLUtils::GetInt(pElement, "stereomode", m_defaultVideoSettings.m_StereoMode))
m_defaultVideoSettings.m_StereoMode = 0;
if (!XMLUtils::GetInt(pElement, "centermixlevel", m_defaultVideoSettings.m_CenterMixLevel))
m_defaultVideoSettings.m_CenterMixLevel = 0;

m_defaultVideoSettings.m_ToneMapMethod = 1;
m_defaultVideoSettings.m_ToneMapParam = 1.0f;
Expand Down Expand Up @@ -212,6 +214,7 @@ bool CMediaSettings::Save(TiXmlNode *settings) const
XMLUtils::SetFloat(pNode, "subtitledelay", m_defaultVideoSettings.m_SubtitleDelay);
XMLUtils::SetBoolean(pNode, "nonlinstretch", m_defaultVideoSettings.m_CustomNonLinStretch);
XMLUtils::SetInt(pNode, "stereomode", m_defaultVideoSettings.m_StereoMode);
XMLUtils::SetInt(pNode, "centermixlevel", m_defaultVideoSettings.m_CenterMixLevel);

// default audio settings for dsp addons
TiXmlElement audioSettingsNode("defaultaudiosettings");
Expand Down

0 comments on commit 15030dc

Please sign in to comment.