diff options
Diffstat (limited to 'main/abstract_jb.c')
-rw-r--r-- | main/abstract_jb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/abstract_jb.c b/main/abstract_jb.c index 6f5fa4ce6..ed2600070 100644 --- a/main/abstract_jb.c +++ b/main/abstract_jb.c @@ -317,10 +317,10 @@ int ast_jb_put(struct ast_channel *chan, struct ast_frame *f) } /* We consider an enabled jitterbuffer should receive frames with valid timing info. */ - if (!f->has_timing_info || f->len < 2 || f->ts < 0) { + if (!ast_test_flag(f, AST_FRFLAG_HAS_TIMING_INFO) || f->len < 2 || f->ts < 0) { ast_log(LOG_WARNING, "%s recieved frame with invalid timing info: " "has_timing_info=%d, len=%ld, ts=%ld, src=%s\n", - chan->name, f->has_timing_info, f->len, f->ts, f->src); + chan->name, ast_test_flag(f, AST_FRFLAG_HAS_TIMING_INFO), f->len, f->ts, f->src); return -1; } |