Hi Alexander, I think you missed removing the initialization of the variable from the function itself.
Medhavi. On 2/9/07, Alexander Chemeris <[EMAIL PROTECTED]> wrote:
Hello, On 2/9/07, Medhavi Bhatia <[EMAIL PROTECTED]> wrote: > It seems that the code in MprEncode::doPrimaryCodec doesnt work properly. > Our guess is that variable "int payloadBytesUsed" which is declared private > to this member should actually be part of the project and initialized in the > constructor rather than the member. Currently what we see is as follows: > > 1. numSamplesIn = 80 > 2. mpPrimaryCodec->encode routine sets the bytesAdded to 80 and > payloadBytesUsed gets set to 80 as well. Note that mPacket1PayloadBytes is > set to 160. sendNow is set to false. > 3. mPacket1PayloadBytes == payloadBytesUsed check fails and the routine > exits without sending out the rtp packet. > > On next iteration, the variable payloadBytesUsed gets re-initialized to 0 > again repeating the whole cycle. > > Our fix was to pull th payloadBytesUsed variable into the class and > initialize it in the constructor which seems to fix the problem. Let us know > if that is wrong or something else seems amiss. Fixed in svn, thanks. It was my mistake. -- Regards, Alexander Chemeris.
_______________________________________________ sipxtapi-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
