Changeset 4164 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
- Timestamp:
- Jun 12, 2012 8:27:52 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r4145 r4164 1615 1615 } 1616 1616 1617 /* Build array of media status and dir*/1617 /* Build array of active media info */ 1618 1618 info->media_cnt = 0; 1619 1619 for (mi=0; mi < call->med_cnt && … … 1650 1650 info->media_dir = call->media[call->audio_idx].dir; 1651 1651 info->conf_slot = call->media[call->audio_idx].strm.a.conf_slot; 1652 } 1653 1654 /* Build array of provisional media info */ 1655 info->prov_media_cnt = 0; 1656 for (mi=0; mi < call->med_prov_cnt && 1657 info->prov_media_cnt < PJ_ARRAY_SIZE(info->prov_media); ++mi) 1658 { 1659 pjsua_call_media *call_med = &call->media_prov[mi]; 1660 1661 info->prov_media[info->prov_media_cnt].index = mi; 1662 info->prov_media[info->prov_media_cnt].status = call_med->state; 1663 info->prov_media[info->prov_media_cnt].dir = call_med->dir; 1664 info->prov_media[info->prov_media_cnt].type = call_med->type; 1665 if (call_med->type == PJMEDIA_TYPE_AUDIO) { 1666 info->prov_media[info->prov_media_cnt].stream.aud.conf_slot = 1667 call_med->strm.a.conf_slot; 1668 } else if (call_med->type == PJMEDIA_TYPE_VIDEO) { 1669 pjmedia_vid_dev_index cap_dev = PJMEDIA_VID_INVALID_DEV; 1670 1671 info->prov_media[info->prov_media_cnt].stream.vid.win_in = 1672 call_med->strm.v.rdr_win_id; 1673 1674 if (call_med->strm.v.cap_win_id != PJSUA_INVALID_ID) { 1675 cap_dev = call_med->strm.v.cap_dev; 1676 } 1677 info->prov_media[info->prov_media_cnt].stream.vid.cap_dev=cap_dev; 1678 } else { 1679 continue; 1680 } 1681 ++info->prov_media_cnt; 1652 1682 } 1653 1683
Note: See TracChangeset
for help on using the changeset viewer.