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