Changeset 5165 for pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp
- Timestamp:
- Aug 21, 2015 6:00:46 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp
r5139 r5165 1684 1684 1685 1685 codec_info->fromPj(pj_codec[i]); 1686 codec InfoList.push_back(codec_info);1686 codec_list.push_back(codec_info); 1687 1687 } 1688 1688 pj_leave_critical_section(); … … 1699 1699 updateCodecInfoList(pj_codec, count, videoCodecInfoList); 1700 1700 #endif 1701 return codecInfoList;1701 return videoCodecInfoList; 1702 1702 } 1703 1703 … … 1714 1714 } 1715 1715 1716 CodecParam Endpoint::videoCodecGetParam(const string &codec_id) const 1717 throw(Error)1718 { 1719 pjmedia_vid_codec_param *pj_param = NULL;1716 VidCodecParam Endpoint::getVideoCodecParam(const string &codec_id) const 1717 throw(Error) 1718 { 1719 VidCodecParam codec_param; 1720 1720 #if PJSUA_HAS_VIDEO 1721 pj_str_t codec_str = str2Pj(codec_id); 1722 1723 PJSUA2_CHECK_EXPR(pjsua_vid_codec_get_param(&codec_str, pj_param)); 1721 pjmedia_vid_codec_param pj_param; 1722 pj_str_t codec_str = str2Pj(codec_id); 1723 1724 PJSUA2_CHECK_EXPR(pjsua_vid_codec_get_param(&codec_str, &pj_param)); 1725 codec_param.fromPj(pj_param); 1724 1726 #else 1725 1727 PJ_UNUSED_ARG(codec_id); 1726 1728 #endif 1727 return pj_param;1728 } 1729 1730 void Endpoint:: videoCodecSetParam(const string &codec_id,1731 const CodecParamparam) throw(Error)1729 return codec_param; 1730 } 1731 1732 void Endpoint::setVideoCodecParam(const string &codec_id, 1733 const VidCodecParam ¶m) throw(Error) 1732 1734 { 1733 1735 #if PJSUA_HAS_VIDEO 1734 1736 pj_str_t codec_str = str2Pj(codec_id); 1735 pjmedia_vid_codec_param *pj_param = (pjmedia_vid_codec_param*)param;1736 1737 PJSUA2_CHECK_EXPR(pjsua_vid_codec_set_param(&codec_str, pj_param));1737 pjmedia_vid_codec_param pj_param = param.toPj(); 1738 1739 PJSUA2_CHECK_EXPR(pjsua_vid_codec_set_param(&codec_str, &pj_param)); 1738 1740 #else 1739 1741 PJ_UNUSED_ARG(codec_id); … … 1742 1744 } 1743 1745 1746 void Endpoint::resetVideoCodecParam(const string &codec_id) throw(Error) 1747 { 1748 #if PJSUA_HAS_VIDEO 1749 pj_str_t codec_str = str2Pj(codec_id); 1750 1751 PJSUA2_CHECK_EXPR(pjsua_vid_codec_set_param(&codec_str, NULL)); 1752 #else 1753 PJ_UNUSED_ARG(codec_id); 1754 PJ_UNUSED_ARG(param); 1755 #endif 1756 }
Note: See TracChangeset
for help on using the changeset viewer.