git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
avswitch: reset video mode only when it has changed
[enigma2.git]
/
lib
/
driver
/
avswitch.cpp
diff --git
a/lib/driver/avswitch.cpp
b/lib/driver/avswitch.cpp
index 35df9388a2b3e765382b2ae65cd4fca844c4bb1e..8197acc77ccedb6a26ebdee3b71c9b8f36427745 100644
(file)
--- 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) {