diff options
Diffstat (limited to 'xbmc/video/dialogs/GUIDialogVideoSettings.cpp')
-rw-r--r-- | xbmc/video/dialogs/GUIDialogVideoSettings.cpp | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/xbmc/video/dialogs/GUIDialogVideoSettings.cpp b/xbmc/video/dialogs/GUIDialogVideoSettings.cpp index afbe2032b9..f9bc12da1a 100644 --- a/xbmc/video/dialogs/GUIDialogVideoSettings.cpp +++ b/xbmc/video/dialogs/GUIDialogVideoSettings.cpp @@ -52,7 +52,6 @@ #define SETTING_VIDEO_VDPAU_NOISE "vdpau.noise" #define SETTING_VIDEO_VDPAU_SHARPNESS "vdpau.sharpness" -#define SETTING_VIDEO_DEINTERLACEMODE "video.deinterlacemode" #define SETTING_VIDEO_INTERLACEMETHOD "video.interlacemethod" #define SETTING_VIDEO_SCALINGMETHOD "video.scalingmethod" @@ -81,9 +80,7 @@ void CGUIDialogVideoSettings::OnSettingChanged(const CSetting *setting) CVideoSettings &videoSettings = CMediaSettings::GetInstance().GetCurrentVideoSettings(); const std::string &settingId = setting->GetId(); - if (settingId == SETTING_VIDEO_DEINTERLACEMODE) - videoSettings.m_DeinterlaceMode = static_cast<EDEINTERLACEMODE>(static_cast<const CSettingInt*>(setting)->GetValue()); - else if (settingId == SETTING_VIDEO_INTERLACEMETHOD) + if (settingId == SETTING_VIDEO_INTERLACEMETHOD) videoSettings.m_InterlaceMethod = static_cast<EINTERLACEMETHOD>(static_cast<const CSettingInt*>(setting)->GetValue()); else if (settingId == SETTING_VIDEO_SCALINGMETHOD) videoSettings.m_ScalingMethod = static_cast<ESCALINGMETHOD>(static_cast<const CSettingInt*>(setting)->GetValue()); @@ -255,16 +252,9 @@ void CGUIDialogVideoSettings::InitializeSettings() CVideoSettings &videoSettings = CMediaSettings::GetInstance().GetCurrentVideoSettings(); StaticIntegerSettingOptions entries; - if (g_application.m_pPlayer->Supports(VS_DEINTERLACEMODE_OFF)) - entries.push_back(std::make_pair(16039, VS_DEINTERLACEMODE_OFF)); - if (g_application.m_pPlayer->Supports(VS_DEINTERLACEMODE_AUTO)) - entries.push_back(std::make_pair(16040, VS_DEINTERLACEMODE_AUTO)); - if (g_application.m_pPlayer->Supports(VS_DEINTERLACEMODE_FORCE)) - entries.push_back(std::make_pair(16041, VS_DEINTERLACEMODE_FORCE)); - if (!entries.empty()) - AddSpinner(groupVideo, SETTING_VIDEO_DEINTERLACEMODE, 16037, 0, static_cast<int>(videoSettings.m_DeinterlaceMode), entries); entries.clear(); + entries.push_back(std::make_pair(16039, VS_INTERLACEMETHOD_NONE)); entries.push_back(std::make_pair(16019, VS_INTERLACEMETHOD_AUTO)); entries.push_back(std::make_pair(20131, VS_INTERLACEMETHOD_RENDER_BLEND)); entries.push_back(std::make_pair(20130, VS_INTERLACEMETHOD_RENDER_WEAVE_INVERTED)); @@ -302,14 +292,7 @@ void CGUIDialogVideoSettings::InitializeSettings() if (!entries.empty()) { - CSettingInt *settingInterlaceMethod = AddSpinner(groupVideo, SETTING_VIDEO_INTERLACEMETHOD, 16038, 0, static_cast<int>(videoSettings.m_InterlaceMethod), entries); - - CSettingDependency dependencyDeinterlaceModeOff(SettingDependencyTypeEnable, m_settingsManager); - dependencyDeinterlaceModeOff.And() - ->Add(CSettingDependencyConditionPtr(new CSettingDependencyCondition(SETTING_VIDEO_DEINTERLACEMODE, "0", SettingDependencyOperatorEquals, true, m_settingsManager))); - SettingDependencies depsDeinterlaceModeOff; - depsDeinterlaceModeOff.push_back(dependencyDeinterlaceModeOff); - settingInterlaceMethod->SetDependencies(depsDeinterlaceModeOff); + AddSpinner(groupVideo, SETTING_VIDEO_INTERLACEMETHOD, 16038, 0, static_cast<int>(videoSettings.m_InterlaceMethod), entries); } entries.clear(); |