Changeset 2220 for pjproject


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

Fixed crash in Python when receiving incoming DTMF digits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/python/_pjsua.c

    r2164 r2220  
    189189        char digit_str[10]; 
    190190 
    191         ENTER_PYTHON(); 
     191        PyGILState_STATE state = PyGILState_Ensure(); 
    192192 
    193193        pj_ansi_snprintf(digit_str, sizeof(digit_str), "%c", digit); 
     
    201201        ); 
    202202 
    203         LEAVE_PYTHON(); 
     203        PyGILState_Release(state); 
    204204    } 
    205205} 
Note: See TracChangeset for help on using the changeset viewer.