{
for (int index = 0; index < __nConfigFileCount; index++)
{
- DestroyPlayerInstance(index);
+ DestroyPlayerInstance(index, false);
}
}
}
result
-MultiPlayForm::DestroyPlayerInstance(int index)
+MultiPlayForm::DestroyPlayerInstance(int index, bool isUpdateReq)
{
result r = E_SUCCESS;
int nCurPlayerVal = 0;
AppLog(">>>>>> MultiPlayForm::DestroyPlayerInstance close failed for index = %d", index);
}
}
- UpdatePlayersStatus(pPobj, index);
+ if (isUpdateReq)
+ {
+ UpdatePlayersStatus(pPobj, index);
+ }
for (nCurPlayerVal = 0; nCurPlayerVal < MAX_PLAY_COUNT; )
{
if(pPobj != null)
for (int index = 0; index < __nConfigFileCount; index++)
{
__pListMenu->SetItemChecked(index, false);
- DestroyPlayerInstance(index);
+ DestroyPlayerInstance(index, false);
}
Deactivate();
}
__nTotalPlayCount = 0;
for (int index = 0; index < __nConfigFileCount; index++)
{
- DestroyPlayerInstance(index);
+ DestroyPlayerInstance(index, true);
}
Deactivate();
break;
__nTotalPlayCount = 0;
for (int index = 0; index < __nConfigFileCount; index++)
{
- DestroyPlayerInstance(index);
+ DestroyPlayerInstance(index, true);
__pListMenu->SetItemChecked(index, false);
}
UpdatePlayersStatus();
for (int index = 0; index < __nConfigFileCount; index++)
{
__pListMenu->SetItemChecked(index, false);
- DestroyPlayerInstance(index);
+ DestroyPlayerInstance(index, false);
}
Deactivate();
}
for (int index = 0; index < __nConfigFileCount; index++)
{
__pListMenu->SetItemChecked(index, false);
- DestroyPlayerInstance(index);
+ DestroyPlayerInstance(index, false);
}
Deactivate();
}
if (status == LIST_ITEM_STATUS_CHECKED)
{
// Check if there is a player instance which is not release if so release it
- DestroyPlayerInstance(index);
+ DestroyPlayerInstance(index, true);
__nTotalPlayCount = __nTotalPlayCount + 1;
AppLog("checked enter __nTotalPlayCount = %d", __nTotalPlayCount);
if (__nTotalPlayCount > MAX_PLAY_COUNT)
{
__nTotalPlayCount = __nTotalPlayCount - 1;
}
- r = DestroyPlayerInstance(index);
+ r = DestroyPlayerInstance(index, true);
}
}
this->SetFocus();
for (int index = 0; index < __nConfigFileCount; index++)
{
__pListMenu->SetItemChecked(index, false);
- DestroyPlayerInstance(index);
+ DestroyPlayerInstance(index, false);
}
Deactivate();
}