summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2015-04-13 12:16:47 +0000
committerNanang Izzuddin <nanang@teluu.com>2015-04-13 12:16:47 +0000
commit3315769a569fd61f099a38094dde1cd3347a8963 (patch)
tree256f5e7de3ea7c27fe35393f4941d63d423de087 /tests
parent1823322ac0a440303c65f21de535724f213f480d (diff)
Re #1842: Fixed build error on cmp_wav tool for python tests due to changed pjmedia format structure in 2.x.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5066 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'tests')
-rw-r--r--tests/pjsua/tools/Makefile2
-rw-r--r--tests/pjsua/tools/cmp_wav.c7
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/pjsua/tools/Makefile b/tests/pjsua/tools/Makefile
index 189eb00c..1c5ac595 100644
--- a/tests/pjsua/tools/Makefile
+++ b/tests/pjsua/tools/Makefile
@@ -1,5 +1,5 @@
#Modify this to point to the PJSIP location.
-PJBASE=~/Desktop/project/pjproject
+PJBASE=../../..
include $(PJBASE)/build.mak
diff --git a/tests/pjsua/tools/cmp_wav.c b/tests/pjsua/tools/cmp_wav.c
index bcf6c3a3..f2353efd 100644
--- a/tests/pjsua/tools/cmp_wav.c
+++ b/tests/pjsua/tools/cmp_wav.c
@@ -147,13 +147,16 @@ int main(int argc, char *argv[])
return 1;
}
- if (file_ori_port->info.clock_rate != file_deg_port->info.clock_rate) {
+ if (file_ori_port->info.fmt.det.aud.clock_rate !=
+ file_deg_port->info.fmt.det.aud.clock_rate)
+ {
app_perror(THIS_FILE, "Clock rates must be same.", PJ_EINVAL);
return 1;
}
if (argc > 3)
- first_nsamples = atoi(argv[3]) * file_ori_port->info.clock_rate / 1000;
+ first_nsamples = atoi(argv[3]) *
+ file_ori_port->info.fmt.det.aud.clock_rate / 1000;
if (argc > 4)
detail = atoi(argv[4]);