]> git.sesse.net Git - vlc/commitdiff
Fix previous commit
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 12 Feb 2007 19:50:29 +0000 (19:50 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 12 Feb 2007 19:50:29 +0000 (19:50 +0000)
modules/access/udp.c

index f7aa200e7c070aaa598d2e71b398e521e1f4ae6c..d034925b7c64b919c941e1604f53c68f47799537 100644 (file)
@@ -236,7 +236,11 @@ static int Open( vlc_object_t *p_this )
 
     p_sys->b_framed_rtp = b_framed;
     if (b_framed)
+    {
+        /* We don't do autodetection and prebuffering in case of framing */
+        p_access->pf_block = BlockRTP;
         p_sys->i_mtu = 65535;
+    }
     else
     {
         /* FIXME */
@@ -577,9 +581,7 @@ static block_t *BlockPrebufferRTP( access_t *p_access, block_t *p_block )
         if( i_count > 2 && (i_date - i_first) > p_sys->i_rtp_late )
             break;
 
-        p = BlockParseRTP( p_access,
-                           p_sys->b_framed_rtp ? BlockTCP( p_access )
-                                               : BlockUDP( p_access ) );
+        p = BlockParseRTP( p_access, BlockUDP( p_access ) );
         if( !p && (i_date - i_first) > p_sys->i_rtp_late ) 
         {
             msg_Err( p_access, "error in RTP prebuffering!" );
@@ -604,8 +606,9 @@ static block_t *BlockRTP( access_t *p_access )
     while ( !p_sys->p_list ||
              ( mdate() - p_sys->p_list->i_pts ) < p_sys->i_rtp_late )
     {
-        p = BlockParseRTP( p_access, BlockUDP( p_access ));
-
+        p = BlockParseRTP( p_access,
+                           p_sys->b_framed_rtp ? BlockTCP( p_access )
+                                               : BlockUDP( p_access ) );
         if ( !p )
             return NULL;