add PyObject refcount debugging code
[vuplus_dvbapp] / lib / dvb_ci / dvbci_ui.cpp
index 56ca25f..1ff0c32 100644 (file)
@@ -22,7 +22,7 @@ eDVBCI_UI::eDVBCI_UI()
                slotdata[i].mmiScreen=NULL;
                slotdata[i].mmiScreenReady=0;
                slotdata[i].mmiTuplePos=0;
-               slotdata[i].state=0;
+               slotdata[i].state=-1;
        }
 }
 
@@ -43,11 +43,7 @@ eDVBCI_UI *eDVBCI_UI::getInstance()
 int eDVBCI_UI::getState(int slot)
 {
        if (slot < MAX_SLOTS)
-       {
-               if (eDVBCIInterfaces::getInstance()->getSlotState(slot) == eDVBCISlot::stateInvalid)
-                       eDVBCIInterfaces::getInstance()->reset(slot);
                return slotdata[slot].state;
-       }
        return 0;
 }
 
@@ -179,7 +175,7 @@ int eDVBCI_UI::mmiScreenBegin(int slot, int listmenu)
        if (slot >= MAX_SLOTS)
                return 0;
 
-       printf("eDVBCI_UI::mmiScreenBegin\n");
+       eDebug("eDVBCI_UI::mmiScreenBegin");
 
        slot_ui_data &data = slotdata[slot];
 
@@ -242,7 +238,7 @@ int eDVBCI_UI::mmiScreenFinish(int slot)
 {
        if (slot < MAX_SLOTS)
        {
-               printf("eDVBCI_UI::mmiScreenFinish\n");
+               eDebug("eDVBCI_UI::mmiScreenFinish");
                slotdata[slot].mmiScreenReady = 1;
                /*emit*/ ciStateChanged(slot);
        }