Ignore:
Timestamp:
Nov 29, 2019 4:21:17 AM (5 years ago)
Author:
ming
Message:

Fixed #2251: Deadlock between PJSUA LOCK and conference mutex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r6044 r6112  
    10021002 
    10031003/* Playfile done notification, set timer to hangup calls */ 
    1004 pj_status_t on_playfile_done(pjmedia_port *port, void *usr_data) 
     1004void on_playfile_done(pjmedia_port *port, void *usr_data) 
    10051005{ 
    10061006    pj_time_val delay; 
     
    10121012    if (pjsua_call_get_count() == 0) { 
    10131013        pjsua_player_set_pos(app_config.wav_id, 0); 
    1014         return PJ_SUCCESS; 
    10151014    } 
    10161015 
    10171016    /* Timer is already active */ 
    10181017    if (app_config.auto_hangup_timer.id == 1) 
    1019         return PJ_SUCCESS; 
     1018        return; 
    10201019 
    10211020    app_config.auto_hangup_timer.id = 1; 
     
    10251024                               &app_config.auto_hangup_timer,  
    10261025                               &delay); 
    1027  
    1028     return PJ_SUCCESS; 
    10291026} 
    10301027 
     
    13611358 
    13621359                pjsua_player_get_port(app_config.wav_id, &port); 
    1363                 status = pjmedia_wav_player_set_eof_cb(port, NULL,  
    1364                                                        &on_playfile_done); 
     1360                status = pjmedia_wav_player_set_eof_cb2(port, NULL,  
     1361                                                        &on_playfile_done); 
    13651362                if (status != PJ_SUCCESS) 
    13661363                    goto on_error; 
Note: See TracChangeset for help on using the changeset viewer.