servicemp3.cpp: more simple/flexible streaming detection
[enigma2.git] / lib / base / console.cpp
index 43f9f61e863160dd2ad679cad98b152ea4ddc55e..00187683258be0e8348e1d7ad9e07ff074504915 100644 (file)
@@ -519,7 +519,7 @@ eConsolePy_write(eConsolePy* self, PyObject *args)
        int ret = -1;
        Py_ssize_t argc = PyTuple_Size(args);
        if (argc > 1)
-               ret = PyArg_ParseTuple(args, "si", &data, &len);
+               ret = !PyArg_ParseTuple(args, "si", &data, &len);
        else if (argc == 1)
        {
                PyObject *ob;