projects
/
vuplus_dvbapp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4fc2a70
)
fix: StandardError: eDVBCIInterfaces::setDescrambleRules entry in caid list is not...
author
ghost
<andreas.monzner@multimedia-labs.de>
Wed, 11 Mar 2009 07:49:33 +0000
(08:49 +0100)
committer
ghost
<andreas.monzner@multimedia-labs.de>
Wed, 11 Mar 2009 07:49:33 +0000
(08:49 +0100)
lib/dvb_ci/dvbci.cpp
patch
|
blob
|
history
diff --git
a/lib/dvb_ci/dvbci.cpp
b/lib/dvb_ci/dvbci.cpp
index
83bbed7
..
8fa1bca
100644
(file)
--- 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);
{
--size;
ePyObject caid = PyList_GET_ITEM(caid_list, size);
- if (!Py
Int
_Check(caid))
+ if (!Py
Long
_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;
}
{
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 = Py
Int
_AsLong(caid);
+ int tmpcaid = Py
Long
_AsLong(caid);
if (tmpcaid > 0 && tmpcaid < 0x10000)
slot->possible_caids.insert(tmpcaid);
else
if (tmpcaid > 0 && tmpcaid < 0x10000)
slot->possible_caids.insert(tmpcaid);
else