summaryrefslogtreecommitdiff
path: root/pjsip-apps/src/samples/siprtp_report.c
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip-apps/src/samples/siprtp_report.c')
-rw-r--r--pjsip-apps/src/samples/siprtp_report.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pjsip-apps/src/samples/siprtp_report.c b/pjsip-apps/src/samples/siprtp_report.c
index dfb28301..192f223b 100644
--- a/pjsip-apps/src/samples/siprtp_report.c
+++ b/pjsip-apps/src/samples/siprtp_report.c
@@ -59,7 +59,7 @@ static void print_call(int call_index)
pj_gettimeofday(&now);
/* Print duration */
- if (inv->state >= PJSIP_INV_STATE_CONFIRMED && call->connect_time) {
+ if (inv->state >= PJSIP_INV_STATE_CONFIRMED && call->connect_time.sec) {
PJ_TIME_VAL_SUB(now, call->connect_time);