Changeset 2122


Ignore:
Timestamp:
Jul 11, 2008 9:14:40 AM (11 years ago)
Author:
bennylp
Message:

Fixed bug in python's player_get_slot() and recorder_get_slot()

File:
1 edited

Legend:

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

    r2120 r2122  
    21542154        """ 
    21552155        slot = _pjsua.player_get_conf_port(player_id) 
    2156         self._err_check("player_get_slot()", self, -1, "Invalid player id") 
     2156        if slot < 0: 
     2157                self._err_check("player_get_slot()", self, -1,  
     2158                                "Invalid player id") 
    21572159        return slot 
    21582160 
     
    22032205        """ 
    22042206        slot = _pjsua.recorder_get_conf_port(rec_id) 
    2205         self._err_check("recorder_get_slot()", self, -1, "Invalid recorder id") 
     2207        if slot < 1: 
     2208            self._err_check("recorder_get_slot()", self, -1,  
     2209                            "Invalid recorder id") 
    22062210        return slot 
    22072211 
Note: See TracChangeset for help on using the changeset viewer.