Ignore:
Timestamp:
Jun 29, 2006 3:42:57 PM (18 years ago)
Author:
bennylp
Message:

Fixed minor bug: RTCP session not fully cleared when it is initialized (should bzero everything), causing incorrect stats when it is reused for next call. Also couple of gcc warnings fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/rtcp.c

    r567 r569  
    134134    pj_time_val now; 
    135135     
    136     /* Reset packet */ 
    137     pj_memset(rtcp_pkt, 0, sizeof(pjmedia_rtcp_pkt)); 
    138      
    139     /* Reset statistics */ 
    140     pj_memset(&sess->stat, 0, sizeof(pjmedia_rtcp_stat)); 
    141     sess->avg_jitter = 0; 
     136    /* Memset everything */ 
     137    pj_memset(sess, 0, sizeof(pjmedia_rtcp_session)); 
    142138 
    143139    /* Last RX timestamp in RTP packet */ 
     
    151147    sess->pkt_size = samples_per_frame; 
    152148 
    153     /* Init time */ 
    154     sess->rx_lsr = 0; 
    155     sess->rx_lsr_time.u64 = 0; 
    156      
    157149    /* Init common RTCP header */ 
    158150    rtcp_pkt->common.version = 2; 
Note: See TracChangeset for help on using the changeset viewer.