]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_rtp_asterisk: Fix building when pjproject is not used.
authorJoshua Colp <jcolp@digium.com>
Tue, 16 Sep 2014 20:31:31 +0000 (20:31 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 16 Sep 2014 20:31:31 +0000 (20:31 +0000)
........

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

res/res_rtp_asterisk.c

index 7385d9da344f79d3acff07da4cb6beada1760304..d67fcd931c1bc15644d31d13592898ad1019a378 100644 (file)
@@ -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) {