Changeset 4428
- Timestamp:
- Mar 7, 2013 8:25:35 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_media.c
r4426 r4428 1857 1857 return status; 1858 1858 1859 /* Get audio index from the negotiated SDP */ 1860 audio_idx = find_audio_index(local_sdp, PJ_TRUE); 1861 1862 /* Update audio index from the negotiated SDP */ 1863 call->audio_idx = audio_idx; 1864 1865 /* Find which session is audio */ 1866 PJ_ASSERT_RETURN(call->audio_idx != -1, PJ_EBUG); 1867 PJ_ASSERT_RETURN(call->audio_idx < (int)sess_info.stream_cnt, PJ_EBUG); 1868 si = &sess_info.stream_info[call->audio_idx]; 1869 1859 1870 /* Override ptime, if this option is specified. */ 1860 1871 if (pjsua_var.media_cfg.ptime != 0) { … … 1869 1880 si->param->setting.vad = 0; 1870 1881 } 1871 1872 /* Get audio index from the negotiated SDP */1873 audio_idx = find_audio_index(local_sdp, PJ_TRUE);1874 1882 1875 1883 /* Get previous media status */ … … 1894 1902 } 1895 1903 1896 /* Update audio index from the negotiated SDP */1897 call->audio_idx = audio_idx;1898 1899 /* Find which session is audio */1900 PJ_ASSERT_RETURN(call->audio_idx != -1, PJ_EBUG);1901 PJ_ASSERT_RETURN(call->audio_idx < (int)sess_info.stream_cnt, PJ_EBUG);1902 si = &sess_info.stream_info[call->audio_idx];1903 1904 1904 /* Reset session info with only one media stream */ 1905 1905 sess_info.stream_cnt = 1;
Note: See TracChangeset
for help on using the changeset viewer.