Ignore:
Timestamp:
May 10, 2019 8:24:34 AM (5 years ago)
Author:
ming
Message:

Re #2181: Fixed incorrect index in getAudioMedia() iteration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua2/call.cpp

    r5976 r5985  
    507507    if (med_idx < 0) { 
    508508        for (unsigned i = 0; i < pj_ci.media_cnt; ++i) { 
    509             if (pj_ci.media[med_idx].type == PJMEDIA_TYPE_AUDIO && 
    510                 pj_ci.media[med_idx].stream.aud.conf_slot != PJSUA_INVALID_ID) 
     509            if (pj_ci.media[i].type == PJMEDIA_TYPE_AUDIO && 
     510                pj_ci.media[i].stream.aud.conf_slot != PJSUA_INVALID_ID) 
    511511            { 
    512512                med_idx = i; 
Note: See TracChangeset for help on using the changeset viewer.