- Timestamp:
- Dec 28, 2016 3:40:07 AM (8 years ago)
- Location:
- pjproject/branches/projects/uwp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/uwp
- Property svn:mergeinfo changed
/pjproject/trunk (added) merged: 5209,5212-5234,5237-5253,5255,5257-5292,5294-5297,5299-5332,5334-5394,5396-5438,5440-5469,5471-5496,5498-5510
- Property svn:mergeinfo changed
-
pjproject/branches/projects/uwp/pjmedia/src/pjmedia/endpoint.c
r5170 r5513 106 106 * Initialize and get the instance of media endpoint. 107 107 */ 108 PJ_DEF(pj_status_t) pjmedia_endpt_create (pj_pool_factory *pf,109 pj_ioqueue_t *ioqueue,110 unsigned worker_cnt,111 pjmedia_endpt **p_endpt)108 PJ_DEF(pj_status_t) pjmedia_endpt_create2(pj_pool_factory *pf, 109 pj_ioqueue_t *ioqueue, 110 unsigned worker_cnt, 111 pjmedia_endpt **p_endpt) 112 112 { 113 113 pj_pool_t *pool; … … 134 134 endpt->has_telephone_event = PJ_TRUE; 135 135 136 /* Sound */ 137 status = pjmedia_aud_subsys_init(pf); 138 if (status != PJ_SUCCESS) 139 goto on_error; 136 /* Initialize audio subsystem. 137 * To avoid pjmedia's dependendy on pjmedia-audiodev, the initialization 138 * (and shutdown) of audio subsystem will be done in the application 139 * level instead, when it calls inline functions pjmedia_endpt_create() 140 * and pjmedia_endpt_destroy(). 141 */ 142 //status = pjmedia_aud_subsys_init(pf); 143 //if (status != PJ_SUCCESS) 144 // goto on_error; 140 145 141 146 /* Init codec manager. */ … … 189 194 190 195 pjmedia_codec_mgr_destroy(&endpt->codec_mgr); 191 pjmedia_aud_subsys_shutdown();196 //pjmedia_aud_subsys_shutdown(); 192 197 pj_pool_release(pool); 193 198 return status; … … 205 210 * Deinitialize media endpoint. 206 211 */ 207 PJ_DEF(pj_status_t) pjmedia_endpt_destroy (pjmedia_endpt *endpt)212 PJ_DEF(pj_status_t) pjmedia_endpt_destroy2 (pjmedia_endpt *endpt) 208 213 { 209 214 exit_cb *ecb; … … 220 225 221 226 pjmedia_codec_mgr_destroy(&endpt->codec_mgr); 222 pjmedia_aud_subsys_shutdown();227 //pjmedia_aud_subsys_shutdown(); 223 228 224 229 /* Call all registered exit callbacks */ … … 557 562 attr = PJ_POOL_ZALLOC_T(pool, pjmedia_sdp_attr); 558 563 attr->name = pj_str("fmtp"); 564 #if defined(PJMEDIA_HAS_DTMF_FLASH) && PJMEDIA_HAS_DTMF_FLASH!= 0 559 565 attr->value = pj_str(PJMEDIA_RTP_PT_TELEPHONE_EVENTS_STR " 0-16"); 566 #else 567 attr->value = pj_str(PJMEDIA_RTP_PT_TELEPHONE_EVENTS_STR " 0-15"); 568 #endif 560 569 m->attr[m->attr_count++] = attr; 561 570 } … … 756 765 pjmedia_sdp_session **p_sdp) 757 766 { 767 char tmp_addr[PJ_INET6_ADDRSTRLEN]; 758 768 pj_time_val tv; 759 769 pjmedia_sdp_session *sdp; … … 771 781 if (origin->addr.sa_family == pj_AF_INET()) { 772 782 sdp->origin.addr_type = STR_IP4; 773 pj_strdup2(pool, &sdp->origin.addr,774 pj_inet_ntoa(origin->ipv4.sin_addr));775 783 } else if (origin->addr.sa_family == pj_AF_INET6()) { 776 char tmp_addr[PJ_INET6_ADDRSTRLEN];777 778 784 sdp->origin.addr_type = STR_IP6; 779 pj_strdup2(pool, &sdp->origin.addr,780 pj_sockaddr_print(origin, tmp_addr, sizeof(tmp_addr), 0));781 782 785 } else { 783 786 pj_assert(!"Invalid address family"); 784 787 return PJ_EAFNOTSUP; 785 788 } 789 790 pj_strdup2(pool, &sdp->origin.addr, 791 pj_sockaddr_print(origin, tmp_addr, sizeof(tmp_addr), 0)); 786 792 787 793 if (sess_name)
Note: See TracChangeset
for help on using the changeset viewer.