diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2006-02-16 11:19:06 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2006-02-16 11:19:06 +0000 |
| commit | 0a826ed1dc53b57babc1ddeec7aa4d3a2cf22bfc (patch) | |
| tree | 1a091828594fe80aceeaed20525a06aeb161f855 /lib/driver/avswitch.cpp | |
| parent | 4864ff19e4b381fdcecf8e4977485d8a5670f51a (diff) | |
| download | enigma2-0a826ed1dc53b57babc1ddeec7aa4d3a2cf22bfc.tar.gz enigma2-0a826ed1dc53b57babc1ddeec7aa4d3a2cf22bfc.zip | |
avswitch: reset video mode only when it has changed
Diffstat (limited to 'lib/driver/avswitch.cpp')
| -rw-r--r-- | lib/driver/avswitch.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/driver/avswitch.cpp b/lib/driver/avswitch.cpp index 35df9388..8197acc7 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) { |
