do explicit cast
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 26 Apr 2006 22:57:35 +0000 (22:57 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 26 Apr 2006 22:57:35 +0000 (22:57 +0000)
lib/dvb/pmt.cpp

index b8663f4..4725183 100644 (file)
@@ -159,7 +159,7 @@ PyObject *eDVBServicePMTHandler::getCaIds()
                                        {
                                                case CA_DESCRIPTOR:
                                                {
-                                                       const CaDescriptor *cadescr = *desc;
+                                                       const CaDescriptor *cadescr = (const CaDescriptor*)*desc;
                                                        uint16_t caid = cadescr->getCaSystemId();
                                                        int idx=0;
                                                        while (caids[idx] && caids[idx] != caid)
@@ -177,7 +177,7 @@ PyObject *eDVBServicePMTHandler::getCaIds()
                                {
                                        case CA_DESCRIPTOR:
                                        {
-                                               const CaDescriptor *cadescr = *desc;
+                                               const CaDescriptor *cadescr = (const CaDescriptor*)*desc;
                                                uint16_t caid = cadescr->getCaSystemId();
                                                int idx=0;
                                                while (caids[idx] && caids[idx] != caid)