Changeset 4941 for pjproject/trunk


Ignore:
Timestamp:
Oct 9, 2014 3:31:11 AM (10 years ago)
Author:
riza
Message:

Misc (re #1782): Support for Russian language for sound device name when using WMME. This should also work for other language with special character set. (Thanks Alexander Fatyanov for the patch).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/wmme_dev.c

    r4760 r4941  
    277277        for (i = 0; i < wf->dev_count; ++i) { 
    278278            if (0 == wcscmp(wf->dev_info[i].endpointId, pwszID)) { 
    279                 wcstombs(wf->dev_info[i].info.name, varName.pwszVal, 
    280                          sizeof(wf->dev_info[i].info.name)); 
     279                pj_unicode_to_ansi(varName.pwszVal,  
     280                                   wcslen(varName.pwszVal),  
     281                                   wf->dev_info[i].info.name,  
     282                                   sizeof(wf->dev_info[i].info.name); 
     283 
    281284                break; 
    282285            } 
Note: See TracChangeset for help on using the changeset viewer.