add a tuxbox plugins plugin to prepare loading of tuxbox plugins when the c++ part...
[enigma2.git] / lib / driver / avswitch.cpp
index 40db19ae03bc52b3eb4a6b04145c6dacd5eef748..482a0f062b4fb383d2d4a525b43139261591fac2 100644 (file)
@@ -46,6 +46,13 @@ void eAVSwitch::setInput(int val)
        write(fd, input[val], strlen(input[val]));
        close(fd);
        
+       if (val == 1)
+               setFastBlank(0);
+}
+
+void eAVSwitch::setFastBlank(int val)
+{
+       int fd;
        char *fb[] = {"low", "high", "vcr"};
 
        
@@ -54,7 +61,7 @@ void eAVSwitch::setInput(int val)
                return;
        }
 
-       write(fd, input[val], strlen(fb[0]));
+       write(fd, fb[val], strlen(fb[0]));
        close(fd);
 }