Changeset 5066


Ignore:
Timestamp:
Apr 13, 2015 12:16:47 PM (10 years ago)
Author:
nanang
Message:

Re #1842: Fixed build error on cmp_wav tool for python tests due to changed pjmedia format structure in 2.x.

Location:
pjproject/trunk/tests/pjsua/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/tests/pjsua/tools/Makefile

    r2884 r5066  
    11#Modify this to point to the PJSIP location. 
    2 PJBASE=~/Desktop/project/pjproject 
     2PJBASE=../../.. 
    33 
    44include $(PJBASE)/build.mak 
  • pjproject/trunk/tests/pjsua/tools/cmp_wav.c

    r3553 r5066  
    148148    } 
    149149 
    150     if (file_ori_port->info.clock_rate != file_deg_port->info.clock_rate) { 
     150    if (file_ori_port->info.fmt.det.aud.clock_rate != 
     151        file_deg_port->info.fmt.det.aud.clock_rate) 
     152    { 
    151153        app_perror(THIS_FILE, "Clock rates must be same.", PJ_EINVAL); 
    152154        return 1; 
     
    154156 
    155157    if (argc > 3) 
    156         first_nsamples = atoi(argv[3]) * file_ori_port->info.clock_rate / 1000; 
     158        first_nsamples = atoi(argv[3]) * 
     159                         file_ori_port->info.fmt.det.aud.clock_rate / 1000; 
    157160 
    158161    if (argc > 4) 
Note: See TracChangeset for help on using the changeset viewer.