Changeset 167
- Timestamp:
- 09/19/07 12:48:26
(1 year ago)
- Author:
- sip
- Message:
Assertion check
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r161 |
r167 |
|
| 247 | 247 | { |
|---|
| 248 | 248 | /* Set data*/ |
|---|
| 249 | | send->data = (void*)send + AST_FRIENDLY_OFFSET; |
|---|
| | 249 | send->data = (unsigned char*)send + AST_FRIENDLY_OFFSET; |
|---|
| 250 | 250 | /* If it's not empty */ |
|---|
| 251 | 251 | if (vt->bufferLength) |
|---|
| … | … | |
| 264 | 264 | } else { |
|---|
| 265 | 265 | /* Set data*/ |
|---|
| 266 | | send->data = (void*)send + AST_FRIENDLY_OFFSET; |
|---|
| | 266 | send->data = (unsigned char*)send + AST_FRIENDLY_OFFSET; |
|---|
| 267 | 267 | send->datalen = vt->bufferLength + 2 ; |
|---|
| 268 | 268 | /* If it's not empty */ |
|---|
| … | … | |
| 274 | 274 | ((unsigned char*)(send->data))[1] = 0x00; |
|---|
| 275 | 275 | } |
|---|
| | 276 | |
|---|
| | 277 | /* Assertion test */ |
|---|
| | 278 | if (i>framelength) |
|---|
| | 279 | { |
|---|
| | 280 | /* Never should happen */ |
|---|
| | 281 | ast_log(LOG_ERROR, "Counter past of frame [%d,%d]\n",i,framelength); |
|---|
| | 282 | /* Empty */ |
|---|
| | 283 | vt->bufferLength = 0; |
|---|
| 276 | 284 | /* If we have to send the begging of this frame */ |
|---|
| 277 | | if (i>0 && found) |
|---|
| 278 | | { |
|---|
| | 285 | } else if (i>0 && found) { |
|---|
| 279 | 286 | /* Copy the begining to the packet to send*/ |
|---|
| 280 | 287 | memcpy(send->data+send->datalen,framedata,i); |
|---|
Download in other formats:
|
|