{
ASSERT(!instance);
instance = this;
+ m_video_mode = 0;
}
eAVSwitch::~eAVSwitch()
{
char *pal="pal";
char *ntsc="ntsc";
+
+ if (mode == m_video_mode)
+ return;
+
int fd;
if((fd = open("/proc/stb/video/videomode", O_WRONLY)) < 0) {
break;
}
close(fd);
+
+ m_video_mode = mode;
}
void eAVSwitch::setWSS(int val) // 0 = auto, 1 = auto(4:3_off)