Changeset 403


Ignore:
Timestamp:
Apr 20, 2006 11:07:59 AM (17 years ago)
Author:
bennylp
Message:

Added the time when session was created in pjmedia_rtcp_stat

Location:
pjproject/trunk/pjmedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/rtcp.h

    r399 r403  
    194194struct pjmedia_rtcp_stat 
    195195{ 
    196     pjmedia_rtcp_stream_stat    tx; /**< Encoder stream statistics.         */ 
    197     pjmedia_rtcp_stream_stat    rx; /**< Decoder stream statistics.         */ 
     196    pj_time_val              start; /**< Time when session was created      */ 
     197 
     198    pjmedia_rtcp_stream_stat tx;    /**< Encoder stream statistics.         */ 
     199    pjmedia_rtcp_stream_stat rx;    /**< Decoder stream statistics.         */ 
    198200     
    199201    struct { 
  • pjproject/trunk/pjmedia/src/pjmedia/rtcp.c

    r399 r403  
    131131{ 
    132132    pjmedia_rtcp_pkt *rtcp_pkt = &sess->rtcp_pkt; 
     133    pj_time_val now; 
    133134     
    134135    pj_memset(rtcp_pkt, 0, sizeof(pjmedia_rtcp_pkt)); 
     
    152153     
    153154    /* Get time and timestamp base and frequency */ 
    154     pj_gettimeofday(&sess->tv_base); 
     155    pj_gettimeofday(&now); 
     156    sess->tv_base = now; 
     157    sess->stat.start = now; 
    155158    pj_get_timestamp(&sess->ts_base); 
    156159    pj_get_timestamp_freq(&sess->ts_freq); 
Note: See TracChangeset for help on using the changeset viewer.