This commit is contained in:
Volker Fischer 2006-03-07 22:06:45 +00:00
parent 5c42d81137
commit b020e674e2

View file

@ -96,10 +96,12 @@ bool CChannelSet::PutData ( const CVector<unsigned char>& vecbyRecBuf,
const int iNumBytesRead,
const CHostAddress& HostAdr )
{
bool bChanOK = false;
bool bRet = false;
Mutex.lock ();
{
bool bChanOK = true;
/* get channel ID --------------------------------------------------- */
/* check address */
int iCurChanID = CheckAddr ( HostAdr );
@ -116,6 +118,7 @@ bool CChannelSet::PutData ( const CVector<unsigned char>& vecbyRecBuf,
else
{
/* no free channel available */
bChanOK = false;
}
}
@ -128,12 +131,12 @@ bool CChannelSet::PutData ( const CVector<unsigned char>& vecbyRecBuf,
{
case PS_AUDIO_OK:
PostWinMessage ( MS_JIT_BUF_PUT, MUL_COL_LED_GREEN, iCurChanID );
bChanOK = true; // in case we have an audio packet, return true
bRet = true; // in case we have an audio packet, return true
break;
case PS_AUDIO_ERR:
PostWinMessage ( MS_JIT_BUF_PUT, MUL_COL_LED_RED, iCurChanID );
bChanOK = true; // in case we have an audio packet, return true
bRet = true; // in case we have an audio packet, return true
break;
case PS_PROT_ERR:
@ -144,7 +147,7 @@ bool CChannelSet::PutData ( const CVector<unsigned char>& vecbyRecBuf,
}
Mutex.unlock ();
return bChanOK;
return bRet;
}
void CChannelSet::GetBlockAllConC ( CVector<int>& vecChanID,