Changeset e75daaa6f4ea320321f900e8657212365f0099a5
- Timestamp:
- 17/10/05 23:41:01
(3 years ago)
- Author:
- Jean-Paul Saman <jpsaman@videolan.org>
- git-committer:
- Jean-Paul Saman <jpsaman@videolan.org> 1129585261 +0000
- git-parent:
[eeab96f133f3e745a9b961557d6b6537e9628548]
- git-author:
- Jean-Paul Saman <jpsaman@videolan.org> 1129585261 +0000
- Message:
reverted most of revision 12872, it didn't work after all
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| reeab96f |
re75daaa |
|
| 361 | 361 | uint32_t i_pcr_new = 0; |
|---|
| 362 | 362 | |
|---|
| | 363 | if( !p_block ) return; |
|---|
| 363 | 364 | if( *pp_list == NULL ) |
|---|
| 364 | 365 | { |
|---|
| … | … | |
| 387 | 388 | i_new = ( (p_block->p_buffer[2] << 8 ) + p_block->p_buffer[3] ); |
|---|
| 388 | 389 | i_cur = ( (p->p_buffer[2] << 8 ) + p->p_buffer[3] ); |
|---|
| 389 | | if( (i_cur - i_new) > 0 ) |
|---|
| | 390 | if( i_cur > i_new ) |
|---|
| 390 | 391 | { |
|---|
| 391 | 392 | msg_Dbg( p_access, ">> prepend %p(%u)==%p(%u)\n", p_block, i_cur, p, i_new ); |
|---|
| … | … | |
| 420 | 421 | break; |
|---|
| 421 | 422 | } |
|---|
| 422 | | else if( (i_expected - i_new) >= 0 ) /* insert in chain */ |
|---|
| | 423 | else if( i_expected >= i_new ) /* insert in chain */ |
|---|
| 423 | 424 | { |
|---|
| 424 | 425 | p_tmp = p->p_next; |
|---|
| … | … | |
| 460 | 461 | i_cur = ( (p->p_buffer[2] << 8 ) + p->p_buffer[3] ); |
|---|
| 461 | 462 | msg_Dbg( p_access, "rtp_ChainSend: i_cur %u, i_seq %u", i_cur, i_seq ); |
|---|
| 462 | | if( (i_cur - i_seq) == 0 ) |
|---|
| | 463 | if( i_cur == i_seq ) |
|---|
| 463 | 464 | { |
|---|
| 464 | 465 | i_seq++; /* sent all packets that are received in order */ |
|---|
| … | … | |
| 489 | 490 | p->p_buffer += i_skip; |
|---|
| 490 | 491 | } |
|---|
| 491 | | else if( (i_cur - i_seq) > 0) |
|---|
| | 492 | else if( i_cur > i_seq ) |
|---|
| 492 | 493 | { |
|---|
| 493 | 494 | if( p_prev ) |
|---|
| … | … | |
| 602 | 603 | if( p_sys->b_first_seqno ) |
|---|
| 603 | 604 | { |
|---|
| 604 | | p_sys->i_sequence_number = i_sequence_number-1; |
|---|
| | 605 | p_sys->i_sequence_number = i_sequence_number - 1; |
|---|
| 605 | 606 | p_sys->i_last_pcr = i_pcr; |
|---|
| 606 | 607 | p_sys->b_first_seqno = VLC_FALSE; |
|---|
| … | … | |
| 616 | 617 | #endif |
|---|
| 617 | 618 | i_sequence_expected = ((p_sys->i_sequence_number + 1) % RTP_SEQ_NUM_SIZE); |
|---|
| 618 | | if( (i_sequence_expected - i_sequence_number) != 0 ) |
|---|
| | 619 | if( i_sequence_expected != i_sequence_number ) |
|---|
| 619 | 620 | { |
|---|
| 620 | 621 | /* Handle out of order packets */ |
|---|
| 621 | 622 | if( p_sys->i_rtp_late > 0 ) |
|---|
| 622 | 623 | { |
|---|
| 623 | | if( (i_sequence_number - i_sequence_expected) > 0 ) |
|---|
| | 624 | if( i_sequence_number > i_sequence_expected ) |
|---|
| 624 | 625 | { |
|---|
| 625 | 626 | msg_Warn( p_access, |
|---|
| … | … | |
| 629 | 630 | { |
|---|
| 630 | 631 | block_t *p_start = p_sys->p_list; |
|---|
| 631 | | uint16_t i_start = (p_start->p_buffer[2] << 8) + |
|---|
| | 632 | uint16_t i_start = (!p_start) ? p_sys->i_sequence_number : |
|---|
| | 633 | (p_start->p_buffer[2] << 8) + |
|---|
| 632 | 634 | p_start->p_buffer[3]; |
|---|
| 633 | 635 | /* Gap too big, we have been holding this data for too long, |
|---|