Skip to content

Commit

Permalink
always go through BlockChoose(), since it assigns the correct demuxer
Browse files Browse the repository at this point in the history
(otherwise e.g. MPEG2 video is mistetected as MPEG-PS)
  • Loading branch information
Marian Durkovic committed Nov 20, 2005
1 parent 8ad7c42 commit 22a9456
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions modules/access/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 );
}

Expand Down

0 comments on commit 22a9456

Please sign in to comment.