Changeset 3901 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
- Timestamp:
- Dec 7, 2011 10:43:28 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
r3893 r3901 2001 2001 2002 2002 2003 static pj_status_t call_send_vid_keyframe(pjsua_call *call, 2004 int med_idx) 2005 { 2006 pjsua_call_media *call_med; 2007 2008 /* Verify and normalize media index */ 2009 if (med_idx == -1) { 2010 int first_active; 2011 2012 call_get_vid_strm_info(call, &first_active, NULL, NULL, NULL); 2013 if (first_active == -1) 2014 return PJ_ENOTFOUND; 2015 2016 med_idx = first_active; 2017 } 2018 2019 call_med = &call->media[med_idx]; 2020 2021 /* Verify media type and stream instance. */ 2022 if (call_med->type != PJMEDIA_TYPE_VIDEO || !call_med->strm.v.stream) 2023 return PJ_EINVAL; 2024 2025 return pjmedia_vid_stream_send_keyframe(call_med->strm.v.stream); 2026 } 2027 2028 2003 2029 /* 2004 2030 * Start, stop, and/or manipulate video transmission for the specified call. … … 2070 2096 status = call_set_tx_video(call, param_.med_idx, PJ_FALSE); 2071 2097 break; 2098 case PJSUA_CALL_VID_STRM_SEND_KEYFRAME: 2099 status = call_send_vid_keyframe(call, param_.med_idx); 2100 break; 2072 2101 default: 2073 2102 status = PJ_EINVALIDOP;
Note: See TracChangeset
for help on using the changeset viewer.