]> git.sesse.net Git - vlc/commitdiff
* modules/access_out/udp.c: Issue a warning when two PCRs are put inside a
authorChristophe Massiot <massiot@videolan.org>
Thu, 13 Jan 2005 19:03:03 +0000 (19:03 +0000)
committerChristophe Massiot <massiot@videolan.org>
Thu, 13 Jan 2005 19:03:03 +0000 (19:03 +0000)
  single UDP frame (may disturb some decoders).

modules/access_output/udp.c

index 9c4d5270bdf6b2a1d0858c87ae4649ae81b64e76..cde2e600dadf99db771856b66ef05f188e6f0ff9 100644 (file)
@@ -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->i_buffer -= i_write;
             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;
+            }
 
             if( p_sys->p_buffer->i_buffer == p_sys->i_mtu || i_packets > 1 )
             {