X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/f50ea7e42b05996b75eba9ed4376c539c5fc00ae..127c6c59e89dbdf96a93659104efd91428569a06:/lib/driver/avswitch.cpp diff --git a/lib/driver/avswitch.cpp b/lib/driver/avswitch.cpp index 35df9388..8110049b 100644 --- a/lib/driver/avswitch.cpp +++ b/lib/driver/avswitch.cpp @@ -14,6 +14,7 @@ eAVSwitch::eAVSwitch() { ASSERT(!instance); instance = this; + m_video_mode = 0; } eAVSwitch::~eAVSwitch() @@ -132,6 +133,10 @@ void eAVSwitch::setVideomode(int mode) { char *pal="pal"; char *ntsc="ntsc"; + + if (mode == m_video_mode) + return; + int fd; if((fd = open("/proc/stb/video/videomode", O_WRONLY)) < 0) { @@ -147,6 +152,8 @@ void eAVSwitch::setVideomode(int mode) break; } close(fd); + + m_video_mode = mode; } void eAVSwitch::setWSS(int val) // 0 = auto, 1 = auto(4:3_off)