Changeset 3925 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
- Timestamp:
- Dec 27, 2011 12:47:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r3921 r3925 1735 1735 1736 1736 /* Check if we need to add new audio */ 1737 if (maudcnt < call->opt.aud io_cnt &&1738 mtotaudcnt < call->opt.aud io_cnt)1737 if (maudcnt < call->opt.aud_cnt && 1738 mtotaudcnt < call->opt.aud_cnt) 1739 1739 { 1740 for (mi = 0; mi < call->opt.aud io_cnt - mtotaudcnt; ++mi)1740 for (mi = 0; mi < call->opt.aud_cnt - mtotaudcnt; ++mi) 1741 1741 maudidx[maudcnt++] = (pj_uint8_t)call->med_cnt++; 1742 1742 1743 mtotaudcnt = call->opt.aud io_cnt;1744 } 1745 maudcnt = call->opt.aud io_cnt;1743 mtotaudcnt = call->opt.aud_cnt; 1744 } 1745 maudcnt = call->opt.aud_cnt; 1746 1746 1747 1747 /* Check if we need to add new video */ 1748 if (mvidcnt < call->opt.vid eo_cnt &&1749 mtotvidcnt < call->opt.vid eo_cnt)1748 if (mvidcnt < call->opt.vid_cnt && 1749 mtotvidcnt < call->opt.vid_cnt) 1750 1750 { 1751 for (mi = 0; mi < call->opt.vid eo_cnt - mtotvidcnt; ++mi)1751 for (mi = 0; mi < call->opt.vid_cnt - mtotvidcnt; ++mi) 1752 1752 mvididx[mvidcnt++] = (pj_uint8_t)call->med_cnt++; 1753 1753 1754 mtotvidcnt = call->opt.vid eo_cnt;1755 } 1756 mvidcnt = call->opt.vid eo_cnt;1754 mtotvidcnt = call->opt.vid_cnt; 1755 } 1756 mvidcnt = call->opt.vid_cnt; 1757 1757 1758 1758 } else { 1759 1759 1760 maudcnt = mtotaudcnt = call->opt.aud io_cnt;1760 maudcnt = mtotaudcnt = call->opt.aud_cnt; 1761 1761 for (mi=0; mi<maudcnt; ++mi) { 1762 1762 maudidx[mi] = (pj_uint8_t)mi; 1763 1763 } 1764 mvidcnt = mtotvidcnt = call->opt.vid eo_cnt;1764 mvidcnt = mtotvidcnt = call->opt.vid_cnt; 1765 1765 for (mi=0; mi<mvidcnt; ++mi) { 1766 1766 mvididx[mi] = (pj_uint8_t)(maudcnt + mi); … … 1815 1815 if (pj_memchr(maudidx, mi, mtotaudcnt * sizeof(maudidx[0]))) { 1816 1816 media_type = PJMEDIA_TYPE_AUDIO; 1817 if (call->opt.aud io_cnt &&1817 if (call->opt.aud_cnt && 1818 1818 pj_memchr(maudidx, mi, maudcnt * sizeof(maudidx[0]))) 1819 1819 { … … 1822 1822 } else if (pj_memchr(mvididx, mi, mtotvidcnt * sizeof(mvididx[0]))) { 1823 1823 media_type = PJMEDIA_TYPE_VIDEO; 1824 if (call->opt.vid eo_cnt &&1824 if (call->opt.vid_cnt && 1825 1825 pj_memchr(mvididx, mi, mvidcnt * sizeof(mvididx[0]))) 1826 1826 { … … 2597 2597 * would pass the SDP negotiation. 2598 2598 */ 2599 if (maudcnt > call->opt.aud io_cnt || mvidcnt > call->opt.video_cnt)2599 if (maudcnt > call->opt.aud_cnt || mvidcnt > call->opt.vid_cnt) 2600 2600 { 2601 2601 pjmedia_sdp_session *local_sdp2; 2602 2602 2603 maudcnt = PJ_MIN(maudcnt, call->opt.aud io_cnt);2604 mvidcnt = PJ_MIN(mvidcnt, call->opt.vid eo_cnt);2603 maudcnt = PJ_MIN(maudcnt, call->opt.aud_cnt); 2604 mvidcnt = PJ_MIN(mvidcnt, call->opt.vid_cnt); 2605 2605 local_sdp2 = pjmedia_sdp_session_clone(tmp_pool, local_sdp); 2606 2606
Note: See TracChangeset
for help on using the changeset viewer.