Commit e6d75333 authored by Christophe Massiot's avatar Christophe Massiot

* modules/access_output/udp.c: More verbosity when the mux itself is late.

parent bad37ffd
...@@ -364,6 +364,12 @@ static int Write( sout_access_out_t *p_access, block_t *p_buffer ) ...@@ -364,6 +364,12 @@ static int Write( sout_access_out_t *p_access, block_t *p_buffer )
if( p_sys->p_buffer && if( p_sys->p_buffer &&
p_sys->p_buffer->i_buffer + p_buffer->i_buffer > p_sys->i_mtu ) p_sys->p_buffer->i_buffer + p_buffer->i_buffer > p_sys->i_mtu )
{ {
if( p_sys->p_buffer->i_dts + p_sys->p_thread->i_caching < mdate() )
{
msg_Dbg( p_access, "late packet for udp input (" I64Fd ")",
mdate() - p_sys->p_buffer->i_dts
- p_sys->p_thread->i_caching );
}
block_FifoPut( p_sys->p_thread->p_fifo, p_sys->p_buffer ); block_FifoPut( p_sys->p_thread->p_fifo, p_sys->p_buffer );
p_sys->p_buffer = NULL; p_sys->p_buffer = NULL;
} }
...@@ -396,6 +402,13 @@ static int Write( sout_access_out_t *p_access, block_t *p_buffer ) ...@@ -396,6 +402,13 @@ static int Write( sout_access_out_t *p_access, block_t *p_buffer )
if( p_sys->p_buffer->i_buffer == p_sys->i_mtu || i_packets > 1 ) if( p_sys->p_buffer->i_buffer == p_sys->i_mtu || i_packets > 1 )
{ {
/* Flush */ /* Flush */
if( p_sys->p_buffer->i_dts + p_sys->p_thread->i_caching
< mdate() )
{
msg_Dbg( p_access, "late packet for udp input (" I64Fd ")",
mdate() - p_sys->p_buffer->i_dts
- p_sys->p_thread->i_caching );
}
block_FifoPut( p_sys->p_thread->p_fifo, p_sys->p_buffer ); block_FifoPut( p_sys->p_thread->p_fifo, p_sys->p_buffer );
p_sys->p_buffer = NULL; p_sys->p_buffer = NULL;
} }
...@@ -533,7 +546,7 @@ static void ThreadWrite( vlc_object_t *p_this ) ...@@ -533,7 +546,7 @@ static void ThreadWrite( vlc_object_t *p_this )
i_dropped_packets++; i_dropped_packets++;
continue; continue;
} }
else if( i_date - i_date_last < 0 ) else if( i_date - i_date_last < -1000 )
{ {
if( !i_dropped_packets ) if( !i_dropped_packets )
msg_Dbg( p_thread, "mmh, packets in the past ("I64Fd")", msg_Dbg( p_thread, "mmh, packets in the past ("I64Fd")",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment