Changeset 5187


Ignore:
Timestamp:
Oct 7, 2015 3:57:17 AM (9 years ago)
Author:
ming
Message:

Re #1882 (misc): Fixed possibly incorrect stream stats

When a codec is opened, it can modify its param (such as iLBC can normalize its frame ptime based on remote SDP), so the stream stats has to be updated accordingly.

Also in this fix is to increase the log level which shows the info of iLBC mode opened.

Location:
pjproject/trunk/pjmedia/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-codec/ilbc.c

    r5182 r5187  
    528528    pj_set_timestamp32(&ilbc_codec->last_tx, 0, 0); 
    529529 
    530     PJ_LOG(5,(ilbc_codec->obj_name,  
     530    PJ_LOG(4,(ilbc_codec->obj_name,  
    531531              "iLBC codec opened, mode=%d", dec_fmtp_mode)); 
    532532 
  • pjproject/trunk/pjmedia/src/pjmedia/stream.c

    r5174 r5187  
    20822082    /* Get codec param: */ 
    20832083    if (info->param) 
    2084         stream->codec_param = *info->param; 
     2084        stream->codec_param = *stream->si.param; 
    20852085    else { 
    20862086        status = pjmedia_codec_mgr_get_default_param(stream->codec_mgr, 
     
    23852385    } 
    23862386#endif 
     2387 
     2388    /* Update the stream info's codec param */ 
     2389    stream->si.param = &stream->codec_param; 
    23872390 
    23882391    /* Send RTCP SDES */ 
Note: See TracChangeset for help on using the changeset viewer.