diff options
author | Joshua Colp <jcolp@digium.com> | 2014-09-16 20:35:34 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2014-09-16 20:35:34 +0000 |
commit | 93f7c8a434e19649d0c9b2c433ae8409d98dfc05 (patch) | |
tree | 751fc367ec776abdd6b17e3a74d480fd63a596ba /res/res_rtp_asterisk.c | |
parent | 79b702f3080c106c3ae4d9046608214fdea63ff9 (diff) |
res_rtp_asterisk: Fix building when pjproject is not used.
........
Merged revisions 423207 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 423208 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@423209 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_rtp_asterisk.c')
-rw-r--r-- | res/res_rtp_asterisk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 739ae17d4..095e29141 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -2476,8 +2476,10 @@ static int ast_rtp_new(struct ast_rtp_instance *instance, static int ast_rtp_destroy(struct ast_rtp_instance *instance) { struct ast_rtp *rtp = ast_rtp_instance_get_data(instance); +#ifdef HAVE_PJPROJECT struct timeval wait = ast_tvadd(ast_tvnow(), ast_samp2tv(TURN_STATE_WAIT_TIME, 1000)); struct timespec ts = { .tv_sec = wait.tv_sec, .tv_nsec = wait.tv_usec * 1000, }; +#endif /* Destroy the smoother that was smoothing out audio if present */ if (rtp->smoother) { |