From: Joshua Colp Date: Tue, 16 Sep 2014 20:31:31 +0000 (+0000) Subject: res_rtp_asterisk: Fix building when pjproject is not used. X-Git-Tag: 12.6.0-rc1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e8a4127403566d2f0f5ca541d9251059732a57b;p=thirdparty%2Fasterisk.git res_rtp_asterisk: Fix building when pjproject is not used. ........ Merged revisions 423207 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@423208 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 7385d9da34..d67fcd931c 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -2465,8 +2465,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) {