- Timestamp:
- Jul 14, 2011 4:42:18 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjsip/src/pjsua-lib/pjsua_vid.c
r3638 r3639 1589 1589 1590 1590 1591 /* 1592 * Get the media stream index of the default video stream in the call. 1593 */ 1594 PJ_DEF(int) pjsua_call_get_vid_stream_idx(pjsua_call_id call_id) 1595 { 1596 pjsua_call *call; 1597 int first_active, first_inactive; 1598 1599 PJ_ASSERT_RETURN(call_id>=0 && call_id<(int)pjsua_var.ua_cfg.max_calls, 1600 PJ_EINVAL); 1601 1602 PJSUA_LOCK(); 1603 call = &pjsua_var.calls[call_id]; 1604 call_get_vid_strm_info(call, &first_active, &first_inactive, NULL, NULL); 1605 PJSUA_UNLOCK(); 1606 1607 if (first_active == -1) 1608 return first_inactive; 1609 1610 return first_active; 1611 } 1612 1613 1591 1614 #endif /* PJSUA_HAS_VIDEO */ 1592 1615
Note: See TracChangeset
for help on using the changeset viewer.