Changeset 4071 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
- Timestamp:
- Apr 24, 2012 5:40:32 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
r4060 r4071 1533 1533 sdp = pjmedia_sdp_session_clone(call->inv->pool_prov, current_sdp); 1534 1534 1535 /* Clean up provisional media before using it */ 1536 pjsua_media_prov_clean_up(call->index); 1537 1538 /* Update provisional media from call media */ 1539 call->med_prov_cnt = call->med_cnt; 1540 pj_memcpy(call->media_prov, call->media, 1541 sizeof(call->media[0]) * call->med_cnt); 1542 1535 1543 /* Initialize call media */ 1536 call_med = &call->media[call->med_cnt++]; 1537 1544 call_med = &call->media_prov[call->med_prov_cnt++]; 1538 1545 status = pjsua_call_media_init(call_med, PJMEDIA_TYPE_VIDEO, 1539 1546 &acc_cfg->rtp_cfg, call->secure_level, … … 1598 1605 on_error: 1599 1606 if (call_med->tp) { 1607 pjsua_set_media_tp_state(call_med, PJSUA_MED_TP_NULL); 1600 1608 pjmedia_transport_close(call_med->tp); 1601 1609 call_med->tp = call_med->tp_orig = NULL; … … 1630 1638 } 1631 1639 1632 call_med = &call->media[med_idx]; 1640 /* Clean up provisional media before using it */ 1641 pjsua_media_prov_clean_up(call->index); 1642 1643 /* Update provisional media from call media */ 1644 call->med_prov_cnt = call->med_cnt; 1645 pj_memcpy(call->media_prov, call->media, 1646 sizeof(call->media[0]) * call->med_cnt); 1647 1648 call_med = &call->media_prov[med_idx]; 1633 1649 1634 1650 /* Verify if the stream media type is video */ … … 1736 1752 on_error: 1737 1753 if (status != PJ_SUCCESS) { 1754 pjsua_media_prov_clean_up(call->index); 1738 1755 return status; 1739 1756 }
Note: See TracChangeset
for help on using the changeset viewer.