- Timestamp:
- Jun 25, 2009 1:27:02 PM (15 years ago)
- Location:
- pjproject/branches/1.0
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.0/pjlib/include/pj/math.h
r2394 r2818 141 141 delta = val - stat->fmean_; 142 142 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); 144 146 145 147 stat->m2_ += (int)(delta * (val-stat->fmean_)); -
pjproject/branches/1.0/pjmedia/src/pjmedia/stream.c
r2543 r2818 1884 1884 stream->jb_mutex = NULL; 1885 1885 } 1886 1887 /* Destroy jitter buffer */ 1888 if (stream->jb) 1889 pjmedia_jbuf_destroy(stream->jb); 1886 1890 1887 1891 return PJ_SUCCESS; -
pjproject/branches/1.0/pjmedia/src/test/sdp_neg_test.c
r2548 r2818 40 40 }; 41 41 42 st ruct test42 static struct test 43 43 { 44 44 const char *title; -
pjproject/branches/1.0/pjsip-apps/src/pjsua/pjsua_app.c
r2800 r2818 3132 3132 pjsua_buddy_info binfo; 3133 3133 pjsua_buddy_get_info(result.nb_result-1, &binfo); 3134 uri = binfo.uri.ptr; 3134 tmp.ptr = buf; 3135 pj_strncpy(&tmp, &binfo.uri, sizeof(buf)); 3135 3136 } 3136 3137 3137 3138 } else if (result.uri_result) { 3138 uri = result.uri_result; 3139 tmp = pj_str(result.uri_result); 3140 } else { 3141 tmp.slen = 0; 3139 3142 } 3140 3143 3141 tmp = pj_str(uri);3142 3144 pjsua_call_make_call( current_acc, &tmp, 0, NULL, NULL, NULL); 3143 3145 break; … … 3163 3165 } 3164 3166 pjsua_buddy_get_info(result.nb_result-1, &binfo); 3165 uri = binfo.uri.ptr; 3167 tmp.ptr = buf; 3168 pj_strncpy(&tmp, &binfo.uri, sizeof(buf)); 3166 3169 } else { 3167 uri = result.uri_result;3170 tmp = pj_str(result.uri_result); 3168 3171 } 3169 3172 … … 3171 3174 pj_status_t status; 3172 3175 3173 tmp = pj_str(uri);3174 3176 status = pjsua_call_make_call(current_acc, &tmp, 0, NULL, 3175 3177 NULL, NULL); … … 3209 3211 pjsua_buddy_info binfo; 3210 3212 pjsua_buddy_get_info(result.nb_result-1, &binfo); 3211 uri = binfo.uri.ptr; 3213 tmp.ptr = buf; 3214 pj_strncpy_with_null(&tmp, &binfo.uri, sizeof(buf)); 3215 uri = buf; 3212 3216 } 3213 3217 … … 3772 3776 pjsua_buddy_info binfo; 3773 3777 pjsua_buddy_get_info(result.nb_result-1, &binfo); 3774 uri = binfo.uri.ptr; 3778 tmp.ptr = buf; 3779 pj_strncpy_with_null(&tmp, &binfo.uri, sizeof(buf)); 3780 uri = buf; 3775 3781 } 3776 3782
Note: See TracChangeset
for help on using the changeset viewer.