Revert "mediaplayer: allow playback of flv files"
[enigma2.git] / lib / base / console.cpp
index 25318cc9e388550a7fb715e20dc329a7ea08799d..add870666b2af45b0dc65c84d0fa4ec0eef1a63e 100644 (file)
@@ -109,6 +109,7 @@ int eConsoleAppContainer::execute(const char *cmdline, const char * const argv[]
 
 //     eDebug("pipe in = %d, out = %d, err = %d", fd[0], fd[1], fd[2]);
 
+       ::fcntl(fd[0], F_SETFL, O_NONBLOCK);
        ::fcntl(fd[1], F_SETFL, O_NONBLOCK);
        ::fcntl(fd[2], F_SETFL, O_NONBLOCK);
        in = eSocketNotifier::create(eApp, fd[0], eSocketNotifier::Read|eSocketNotifier::Priority|eSocketNotifier::Hungup );
@@ -497,7 +498,7 @@ eConsolePy_execute(eConsolePy* self, PyObject *argt)
                        argv[argpos++] = PyString_AsString(arg);
                }
                argv[argpos] = 0;
-               return PyInt_FromLong(self->cont->execute(argv[0], argv));
+               return PyInt_FromLong(self->cont->execute(argv[0], argv+1));
        }
        else
        {