rtcp_SDES_item_t *p_old = p_client->pp_sdes[i];
REMOVE_ELEM( p_client->pp_sdes, p_client->i_items, i );
p_client->i_items--;
- if( p_old->psz_data)
- free( p_old->psz_data );
+ free( p_old->psz_data );
free( p_old );
}
return VLC_SUCCESS;
rtcp_client_t *p_client = NULL;
uint32_t i_pos = 0;
uint32_t u_ssrc = 0;
- int result = 0;
u_ssrc = bs_read( p_rtcp->bs, 32 );
- result = p_rtcp->pf_find_client( p_this, u_ssrc, &i_pos );
- if( result == VLC_EGENERIC )
+ if( p_rtcp->pf_find_client( p_this, u_ssrc, &i_pos ) == VLC_EGENERIC )
{
- result = p_rtcp->pf_add_client( p_this, p_pkt->u_ssrc, &i_pos );
- if( result == VLC_EGENERIC )
+ if( p_rtcp->pf_add_client( p_this, p_pkt->u_ssrc, &i_pos ) == VLC_EGENERIC )
return VLC_ENOMEM;
}
vlc_object_lock( p_rtcp );
rtcp_client_t *p_client = NULL;
uint32_t i_pos = 0;
uint32_t u_ssrc = 0;
- int result = 0;
u_ssrc = bs_read( p_rtcp->bs, 32 );
- result = p_rtcp->pf_find_client( p_this, u_ssrc, &i_pos );
- if( result == VLC_EGENERIC )
+ if( p_rtcp->pf_find_client( p_this, u_ssrc, &i_pos ) == VLC_EGENERIC )
{
- result = p_rtcp->pf_add_client( p_this, p_pkt->u_ssrc, &i_pos );
- if( result == VLC_EGENERIC )
+ if( p_rtcp->pf_add_client( p_this, p_pkt->u_ssrc, &i_pos ) == VLC_EGENERIC )
return VLC_ENOMEM;
}
uint8_t u_item = 0;
uint8_t u_length = 0;
int i = 0;
- int result = 0;
u_ssrc = bs_read( p_rtcp->bs, 32 );
- result = p_rtcp->pf_find_client( p_this, u_ssrc, &i_pos );
- if( result == VLC_EGENERIC )
+ if( p_rtcp->pf_find_client( p_this, u_ssrc, &i_pos ) == VLC_EGENERIC )
{
- result = p_rtcp->pf_add_client( p_this, p_pkt->u_ssrc, &i_pos );
- if( result == VLC_EGENERIC )
+ if( p_rtcp->pf_add_client( p_this, p_pkt->u_ssrc, &i_pos ) == VLC_EGENERIC )
return VLC_ENOMEM;
}
uint32_t u_ssrc = 0;
uint32_t i_pos = 0;
uint32_t i = 0;
- int result = 0;
if( !p_pkt )
return VLC_EGENERIC;
u_ssrc = bs_read( p_rtcp->bs, 32 );
- result = p_rtcp->pf_find_client( p_this, u_ssrc, &i_pos );
- if( result == VLC_EGENERIC )
+ if( p_rtcp->pf_find_client( p_this, u_ssrc, &i_pos ) == VLC_EGENERIC )
{
- result = p_rtcp->pf_add_client( p_this, p_pkt->u_ssrc, &i_pos );
- if( result == VLC_EGENERIC )
+ if( p_rtcp->pf_add_client( p_this, p_pkt->u_ssrc, &i_pos ) == VLC_EGENERIC )
return VLC_ENOMEM;
}
rtcp_stats_t *p_stats = NULL;
rtcp_client_t *p_client = NULL;
uint32_t i_pos = 0;
- int result = 0;
if( p_pkt->u_payload_type != RTCP_SR )
return NULL;
bs_write( s, 32, p_pkt->report.sr.u_octet_count );
/* report block */
- result = p_rtcp->pf_find_client( p_this, p_pkt->u_ssrc, &i_pos );
- if( result == VLC_EGENERIC )
+ if( p_rtcp->pf_find_client( p_this, p_pkt->u_ssrc, &i_pos ) == VLC_EGENERIC )
{
msg_Err( p_this, "SR: SSRC identifier doesn't exists", p_pkt->u_ssrc );
free( p_block );
rtcp_stats_t *p_stats = NULL;
rtcp_client_t *p_client = NULL;
uint32_t i_pos = 0;
- int result = 0;
if( p_pkt->u_payload_type != RTCP_RR )
return NULL;
bs_write( s, 32, p_pkt->u_ssrc );
/* report block */
- result = p_rtcp->pf_find_client( p_this, p_pkt->u_ssrc, &i_pos );
- if( result == VLC_EGENERIC )
+ if( p_rtcp->pf_find_client( p_this, p_pkt->u_ssrc, &i_pos ) == VLC_EGENERIC )
{
msg_Err( p_this, "RR: SSRC identifier doesn't exists", p_pkt->u_ssrc );
free( p_block );