Ignore:
Timestamp:
Jun 25, 2009 1:27:02 PM (15 years ago)
Author:
bennylp
Message:

Ticket #773 (mixed fixes): backported changes from #772:

  • from r2566: bug in pjsua application when reading the URL from the buddy list, causing corrupt/invalid URI to be returned. Thanks Robert Cichielo for the report.
  • from r2577: Updated floating point version of math statistic to return the rounded mean value.
  • from r2586: Updated stream_destroy() to call jbuf_destroy().
  • from r2604: Changed var 'test' (in sdp_neg_test.c) from a global var to static var, since there was naming conflict with libg7221codec.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.0/pjlib/include/pj/math.h

    r2394 r2818  
    141141    delta = val - stat->fmean_; 
    142142    stat->fmean_ += delta/stat->n; 
    143     stat->mean = (int) stat->fmean_; 
     143     
     144    /* Return mean value with 'rounding' */ 
     145    stat->mean = (int) (stat->fmean_ + 0.5); 
    144146 
    145147    stat->m2_ += (int)(delta * (val-stat->fmean_)); 
Note: See TracChangeset for help on using the changeset viewer.