]> 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:30:05 +0000 (20:30 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 16 Sep 2014 20:30:05 +0000 (20:30 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@423207 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_rtp_asterisk.c

index 8727a1b715d90ef1d382ea9d0139bd327f916dc1..a6210060998b0c279b260d0420f7aa588d04ebfe 100644 (file)
@@ -2453,8 +2453,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 USE_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) {