summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzuul <zuul@gerrit.asterisk.org>2017-03-24 06:59:30 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-03-24 06:59:30 -0500
commit68d523a1af4a523c038ae7e9294e27723a00ac37 (patch)
tree44d54dc9ba1e71da8c085f17ee071d537fd7ebe5
parentf1b34e6eb465221902baf4dc9f8979201472202c (diff)
parentd5b480afcae343a7222b1b2b1279f8877c42925d (diff)
Merge "audiohook.c: Lost RTP packets lead to out-of-sync MixMonitor." into 13
-rw-r--r--main/audiohook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/audiohook.c b/main/audiohook.c
index f5812e701..0a2f6c2f7 100644
--- a/main/audiohook.c
+++ b/main/audiohook.c
@@ -186,7 +186,7 @@ int ast_audiohook_write_frame(struct ast_audiohook *audiohook, enum ast_audiohoo
other_factory_samples = ast_slinfactory_available(other_factory);
other_factory_ms = other_factory_samples / (audiohook->hook_internal_samp_rate / 1000);
- if (ast_test_flag(audiohook, AST_AUDIOHOOK_TRIGGER_SYNC) && other_factory_samples && (our_factory_ms - other_factory_ms > AST_AUDIOHOOK_SYNC_TOLERANCE)) {
+ if (ast_test_flag(audiohook, AST_AUDIOHOOK_TRIGGER_SYNC) && (our_factory_ms - other_factory_ms > AST_AUDIOHOOK_SYNC_TOLERANCE)) {
ast_debug(1, "Flushing audiohook %p so it remains in sync\n", audiohook);
ast_slinfactory_flush(factory);
ast_slinfactory_flush(other_factory);