Skip to content

Commit

Permalink
Merge branch 'Developer' into Python3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Ev0-BH committed Dec 8, 2023
2 parents f5a499f + c06f453 commit 3274103
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/python/Screens/VideoMode.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,12 @@ def VideoChangeDetect(self):
self.delay = False
self.detecttimer.stop()
return
with open(videomode, "r+") as fd: # GB4K can fail on initial open as r
current_mode = fd.read()[:-1].replace("\n", "")
try:
with open(videomode, "r+") as fd: # GB4K can fail on initial open
current_mode = fd.read()[:-1].replace("\n", "")
except:
with open("/proc/stb/video/videomode", "r") as fd:
current_mode = fd.read()[:-1].replace("\n", "")
if current_mode.upper() in ("PAL", "NTSC"):
current_mode = current_mode.upper()
video_height = None
Expand Down

0 comments on commit 3274103

Please sign in to comment.