Changeset 6024


Ignore:
Timestamp:
Jun 12, 2019 4:51:10 AM (5 years ago)
Author:
nanang
Message:

Re #2181: Fixed incorrect index in getEncodingVideoMedia() & getDecodingVideoMedia iterations.

File:
1 edited

Legend:

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

    r6009 r6024  
    545545    if (med_idx < 0) { 
    546546        for (unsigned i = 0; i < pj_ci.media_cnt; ++i) { 
    547             if (pj_ci.media[med_idx].type == PJMEDIA_TYPE_VIDEO && 
    548                 pj_ci.media[med_idx].stream.vid.enc_slot != PJSUA_INVALID_ID) 
     547            if (pj_ci.media[i].type == PJMEDIA_TYPE_VIDEO && 
     548                pj_ci.media[i].stream.vid.enc_slot != PJSUA_INVALID_ID) 
    549549            { 
    550550                med_idx = i; 
     
    583583    if (med_idx < 0) { 
    584584        for (unsigned i = 0; i < pj_ci.media_cnt; ++i) { 
    585             if (pj_ci.media[med_idx].type == PJMEDIA_TYPE_VIDEO && 
    586                 pj_ci.media[med_idx].stream.vid.dec_slot != PJSUA_INVALID_ID) 
     585            if (pj_ci.media[i].type == PJMEDIA_TYPE_VIDEO && 
     586                pj_ci.media[i].stream.vid.dec_slot != PJSUA_INVALID_ID) 
    587587            { 
    588588                med_idx = i; 
Note: See TracChangeset for help on using the changeset viewer.