Changeset 1156 for pjproject


Ignore:
Timestamp:
Apr 5, 2007 10:45:06 PM (18 years ago)
Author:
bennylp
Message:

Fixed ticket #214: Error opening sound device is not propagated to application (thanks Paul Levin)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r1135 r1156  
    402402        status = pjsua_set_snd_dev(pjsua_var.cap_dev, pjsua_var.play_dev); 
    403403        if (status != PJ_SUCCESS) { 
    404             /* Error opening sound device, use null device */ 
    405             char errmsg[PJ_ERR_MSG_SIZE]; 
    406  
    407             pj_strerror(status, errmsg, sizeof(errmsg)); 
    408             PJ_LOG(4,(THIS_FILE,  
    409                       "Error opening default sound device (%s (status=%d)). " 
    410                       "Will use NULL device instead", 
    411                       errmsg, status)); 
    412              
    413             status = pjsua_set_null_snd_dev(); 
    414             if (status != PJ_SUCCESS) { 
    415                 pjsua_perror(THIS_FILE, "Error opening NULL sound device", 
    416                              status); 
    417                 return status; 
    418             } 
     404            pjsua_perror(THIS_FILE, "Error opening sound device", status); 
     405            return status; 
    419406        } 
    420407    } 
Note: See TracChangeset for help on using the changeset viewer.