]> git.sesse.net Git - vlc/commitdiff
always go through BlockChoose(), since it assigns the correct demuxer
authorMarian Durkovic <md@videolan.org>
Sun, 20 Nov 2005 08:36:06 +0000 (08:36 +0000)
committerMarian Durkovic <md@videolan.org>
Sun, 20 Nov 2005 08:36:06 +0000 (08:36 +0000)
(otherwise e.g. MPEG2 video is mistetected as MPEG-PS)

modules/access/udp.c

index 74825cc1b3db46831edf700d66c490098d73e212..602a92bbe71609abc5e5811780e2e8e7f1e2b736 100644 (file)
@@ -191,16 +191,7 @@ static int Open( vlc_object_t *p_this )
 
     /* Set up p_access */
     p_access->pf_read = NULL;
-    if( !strcasecmp( p_access->psz_access, "rtp" )
-          || !strcasecmp( p_access->psz_access, "rtp4" )
-          || !strcasecmp( p_access->psz_access, "rtp6" ) )
-    {
-        p_access->pf_block = BlockRTP;
-    }
-    else
-    {
-        p_access->pf_block = BlockChoose;
-    }
+    p_access->pf_block = BlockChoose;
     p_access->pf_control = Control;
     p_access->pf_seek = NULL;
     p_access->info.i_update = 0;
@@ -528,9 +519,6 @@ static block_t *BlockRTP( access_t *p_access )
         if ( !p ) 
             return NULL;
 
-        if ( !p_access->info.b_prebuffered )
-            return BlockPrebufferRTP( p_access, p );
         rtp_ChainInsert( p_access, p );
     }