Ignore:
Timestamp:
Aug 18, 2008 11:32:13 AM (16 years ago)
Author:
bennylp
Message:

Fixed Python bug with enum_codecs() (thanks Saúl Ibarra for the report)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/python/pjsua.py

    r2170 r2221  
    19401940 
    19411941    def __init__(self, codec_info, codec_param): 
    1942         self.name = codec_info.id 
     1942        self.name = codec_info.codec_id 
    19431943        self.priority = codec_info.priority 
    19441944        self.clock_rate = codec_param.info.clock_rate 
    1945         self.channel_count = codec_param.info.channel_count 
     1945        self.channel_count = codec_param.info.channel_cnt 
    19461946        self.avg_bps = codec_param.info.avg_bps 
    19471947        self.frm_ptime = codec_param.info.frm_ptime 
     
    19541954    def _cvt_to_pjsua(self): 
    19551955        ci = _pjsua.Codec_Info() 
    1956         ci.id = self.name 
     1956        ci.codec_id = self.name 
    19571957        ci.priority = self.priority 
    19581958        return ci 
     
    23472347        codec_info = [] 
    23482348        for ci in ci_list: 
    2349             cp = _pjsua.codec_get_param(ci.id) 
     2349            cp = _pjsua.codec_get_param(ci.codec_id) 
    23502350            if cp: 
    23512351                codec_info.append(CodecInfo(ci, cp)) 
Note: See TracChangeset for help on using the changeset viewer.