Ignore:
Timestamp:
Apr 5, 2007 10:43:28 PM (17 years ago)
Author:
bennylp
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.5-stable/pjsip/src/pjsua-lib/pjsua_media.c

    r1065 r1155  
    389389        status = pjsua_set_snd_dev(pjsua_var.cap_dev, pjsua_var.play_dev); 
    390390        if (status != PJ_SUCCESS) { 
    391             /* Error opening sound device, use null device */ 
    392             char errmsg[PJ_ERR_MSG_SIZE]; 
    393  
    394             pj_strerror(status, errmsg, sizeof(errmsg)); 
    395             PJ_LOG(4,(THIS_FILE,  
    396                       "Error opening default sound device (%s (status=%d)). " 
    397                       "Will use NULL device instead", 
    398                       errmsg, status)); 
    399              
    400             status = pjsua_set_null_snd_dev(); 
    401             if (status != PJ_SUCCESS) { 
    402                 pjsua_perror(THIS_FILE, "Error opening NULL sound device", 
    403                              status); 
    404                 return status; 
    405             } 
     391            pjsua_perror(THIS_FILE, "Error opening sound device", status); 
     392            return status; 
    406393        } 
    407394    } 
Note: See TracChangeset for help on using the changeset viewer.