Changeset f5321226d3885a9cbf78798422c3a03eb5ddcd26

Show
Ignore:
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
  • modules/access_output/udp.c

    r9025fab rf532122  
    461461        block_t *p_next; 
    462462        int i_packets = 0; 
     463        mtime_t now = mdate(); 
    463464 
    464465        if( !p_sys->b_mtu_warning && p_buffer->i_buffer > p_sys->i_mtu ) 
     
    473474            p_sys->p_buffer->i_buffer + p_buffer->i_buffer > p_sys->i_mtu ) 
    474475        { 
    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
    476477            { 
    477478                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 
    479480                          - p_sys->p_thread->i_caching ); 
    480481            } 
     
    516517            { 
    517518                /* 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 ) 
    520520                { 
    521521                    msg_Dbg( p_access, "late packet for udp input (" I64Fd ")",