diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index f5092248b2..ee78906ce9 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -4010,7 +4010,8 @@ def aspectSelection(self): ] keys = ["green", "", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"] from Components.AVSwitch import AVSwitch - aspect = AVSwitch.getAspectRatioSetting() + iAVSwitch = AVSwitch() + aspect = iAVSwitch.getAspectRatioSetting() selection = 0 for item in range(len(aspectList)): if aspectList[item][1] == aspect: @@ -4027,7 +4028,8 @@ def aspectSelected(self, aspect): self.ExGreen_toggleGreen() else: from Components.AVSwitch import AVSwitch - AVSwitch.setAspectRatio(int(aspect[1])) + iAVSwitch = AVSwitch() + iAVSwitch.setAspectRatio(int(aspect[1])) self.ExGreen_doHide() else: self.ExGreen_doHide()