Commit e81a9dca authored by François Cartegnie's avatar François Cartegnie 🤞

demux: ps: remove tautology

parent c3617185
......@@ -1389,7 +1389,7 @@ static int DemuxBlock( demux_t *p_demux, const uint8_t *p, int len )
{
ESNew( p_demux, i_id );
}
if( tk->b_configured && tk->es &&
if( tk->es &&
!ps_pkt_parse_pes( VLC_OBJECT(p_demux), p_pkt, tk->i_skip ) )
{
es_out_Send( p_demux->out, tk->es, p_pkt );
......
......@@ -613,7 +613,7 @@ static int DemuxBlock( demux_t *p_demux, const uint8_t *p, int len )
{
ESNew( p_demux, i_id, 0 );
}
if( tk->b_configured && tk->es &&
if( tk->es &&
!ps_pkt_parse_pes( VLC_OBJECT(p_demux), p_pkt, tk->i_skip ) )
{
es_out_Send( p_demux->out, tk->es, p_pkt );
......
......@@ -383,7 +383,7 @@ static void NotifyDiscontinuity( ps_track_t *p_tk, es_out_t *out )
for( size_t i = 0; i < PS_TK_COUNT; i++ )
{
ps_track_t *tk = &p_tk[i];
if( tk->b_configured && tk->es &&
if( tk->es &&
es_out_Control( out, ES_OUT_GET_ES_STATE, tk->es, &b_selected ) == VLC_SUCCESS
&& b_selected )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment