mirror of
https://code.videolan.org/videolan/vlc
synced 2024-07-21 07:24:15 +02:00
* modules/access_out/udp.c: Issue a warning when two PCRs are put inside a
single UDP frame (may disturb some decoders).
This commit is contained in:
parent
bca6b23c04
commit
cf6e33afe3
@ -383,7 +383,11 @@ static int Write( sout_access_out_t *p_access, block_t *p_buffer )
|
|||||||
p_buffer->p_buffer += i_write;
|
p_buffer->p_buffer += i_write;
|
||||||
p_buffer->i_buffer -= i_write;
|
p_buffer->i_buffer -= i_write;
|
||||||
if ( p_buffer->i_flags & BLOCK_FLAG_CLOCK )
|
if ( p_buffer->i_flags & BLOCK_FLAG_CLOCK )
|
||||||
|
{
|
||||||
|
if ( p_sys->p_buffer->i_flags & BLOCK_FLAG_CLOCK )
|
||||||
|
msg_Warn( p_access, "putting two PCRs at once" );
|
||||||
p_sys->p_buffer->i_flags |= BLOCK_FLAG_CLOCK;
|
p_sys->p_buffer->i_flags |= BLOCK_FLAG_CLOCK;
|
||||||
|
}
|
||||||
|
|
||||||
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 )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user