Changeset f5321226d3885a9cbf78798422c3a03eb5ddcd26
- Timestamp:
- 07/03/07 18:08:20
(1 year ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1183478900 +0000
- git-parent:
[05ecd69abbc96c605bec5aba678bdaa2ee1b81b2]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1183478900 +0000
- Message:
Invoke the clock once rather than 2/3 times...
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r9025fab |
rf532122 |
|
| 461 | 461 | block_t *p_next; |
|---|
| 462 | 462 | int i_packets = 0; |
|---|
| | 463 | mtime_t now = mdate(); |
|---|
| 463 | 464 | |
|---|
| 464 | 465 | if( !p_sys->b_mtu_warning && p_buffer->i_buffer > p_sys->i_mtu ) |
|---|
| … | … | |
| 473 | 474 | p_sys->p_buffer->i_buffer + p_buffer->i_buffer > p_sys->i_mtu ) |
|---|
| 474 | 475 | { |
|---|
| 475 | | if( p_sys->p_buffer->i_dts + p_sys->p_thread->i_caching < mdate() ) |
|---|
| | 476 | if( p_sys->p_buffer->i_dts + p_sys->p_thread->i_caching < now ) |
|---|
| 476 | 477 | { |
|---|
| 477 | 478 | msg_Dbg( p_access, "late packet for UDP input (" I64Fd ")", |
|---|
| 478 | | mdate() - p_sys->p_buffer->i_dts |
|---|
| | 479 | now - p_sys->p_buffer->i_dts |
|---|
| 479 | 480 | - p_sys->p_thread->i_caching ); |
|---|
| 480 | 481 | } |
|---|
| … | … | |
| 516 | 517 | { |
|---|
| 517 | 518 | /* Flush */ |
|---|
| 518 | | if( p_sys->p_buffer->i_dts + p_sys->p_thread->i_caching |
|---|
| 519 | | < mdate() ) |
|---|
| | 519 | if( p_sys->p_buffer->i_dts + p_sys->p_thread->i_caching < now ) |
|---|
| 520 | 520 | { |
|---|
| 521 | 521 | msg_Dbg( p_access, "late packet for udp input (" I64Fd ")", |
|---|