Changeset 5510 for pjproject


Ignore:
Timestamp:
Dec 23, 2016 5:40:59 AM (8 years ago)
Author:
nanang
Message:

Fixed #1987: Verify 'med_prov_cnt' after media reinitialization (with a new call setting) to make sure it is not decreased.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r5490 r5510  
    20402040                } 
    20412041#endif 
     2042            } 
     2043 
     2044            /* In case of media reinit, 'med_prov_cnt' may be decreased 
     2045             * because the new call->opt says so. As media count should 
     2046             * never decrease, we should verify 'med_prov_cnt' to be 
     2047             * at least equal to 'med_cnt' (see also #1987). 
     2048             */ 
     2049            if (reinit && (call->opt.flag & PJSUA_CALL_REINIT_MEDIA) && 
     2050                call->med_prov_cnt < call->med_cnt) 
     2051            { 
     2052                call->med_prov_cnt = call->med_cnt; 
    20422053            } 
    20432054        } 
Note: See TracChangeset for help on using the changeset viewer.