Changeset 732 for pjproject/trunk


Ignore:
Timestamp:
Sep 21, 2006 9:06:08 AM (18 years ago)
Author:
bennylp
Message:

Fixed capture device enumeration bug in DirectSound?, and changed SDP generation to put the IP address instead of hostname in the SDP origin field since hostname may not be setup correctly.

Location:
pjproject/trunk/pjmedia/src/pjmedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/dsound.c

    r648 r732  
    642642 
    643643    /* Enumerate sound capture devices */ 
    644     hr = DirectSoundEnumerate(&DSEnumCallback, (void*)1); 
     644    hr = DirectSoundCaptureEnumerate(&DSEnumCallback, (void*)1); 
    645645    if (FAILED(hr)) 
    646646        return PJ_RETURN_OS_ERROR(hr); 
  • pjproject/trunk/pjmedia/src/pjmedia/endpoint.c

    r637 r732  
    299299    sdp->origin.net_type = STR_IN; 
    300300    sdp->origin.addr_type = STR_IP4; 
    301     sdp->origin.addr = *pj_gethostname(); 
     301    pj_strdup2(pool, &sdp->origin.addr,  
     302               pj_inet_ntoa(sock_info[0].rtp_addr_name.sin_addr)); 
    302303    sdp->name = STR_SDP_NAME; 
    303304 
Note: See TracChangeset for help on using the changeset viewer.