diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-03-11 08:49:33 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-03-11 08:49:33 +0100 |
| commit | 0ffeb4cf114a6706ba629112c070e3d94da98793 (patch) | |
| tree | 6ad458e106a1ac311a78f553188c30f9e2967537 /lib/dvb_ci | |
| parent | 4fc2a70eeb86fa51b783b4a9c034b926db0013a3 (diff) | |
| download | enigma2-0ffeb4cf114a6706ba629112c070e3d94da98793.tar.gz enigma2-0ffeb4cf114a6706ba629112c070e3d94da98793.zip | |
fix: StandardError: eDVBCIInterfaces::setDescrambleRules entry in caid list is not a long it is 'long'!!
Diffstat (limited to 'lib/dvb_ci')
| -rw-r--r-- | lib/dvb_ci/dvbci.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dvb_ci/dvbci.cpp b/lib/dvb_ci/dvbci.cpp index 83bbed75..8fa1bca2 100644 --- a/lib/dvb_ci/dvbci.cpp +++ b/lib/dvb_ci/dvbci.cpp @@ -897,14 +897,14 @@ RESULT eDVBCIInterfaces::setDescrambleRules(int slotid, SWIG_PYOBJECT(ePyObject) { --size; ePyObject caid = PyList_GET_ITEM(caid_list, size); - if (!PyInt_Check(caid)) + if (!PyLong_Check(caid)) { char buf[255]; snprintf(buf, 255, "eDVBCIInterfaces::setDescrambleRules entry in caid list is not a long it is '%s'!!", PyObject_TypeStr(caid)); PyErr_SetString(PyExc_StandardError, buf); return -1; } - int tmpcaid = PyInt_AsLong(caid); + int tmpcaid = PyLong_AsLong(caid); if (tmpcaid > 0 && tmpcaid < 0x10000) slot->possible_caids.insert(tmpcaid); else |
