diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2015-04-13 12:16:47 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2015-04-13 12:16:47 +0000 |
commit | 3315769a569fd61f099a38094dde1cd3347a8963 (patch) | |
tree | 256f5e7de3ea7c27fe35393f4941d63d423de087 /tests/pjsua/tools/cmp_wav.c | |
parent | 1823322ac0a440303c65f21de535724f213f480d (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/pjsua/tools/cmp_wav.c')
-rw-r--r-- | tests/pjsua/tools/cmp_wav.c | 7 |
1 files changed, 5 insertions, 2 deletions
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]); |