diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-16 15:27:58 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-04-16 15:27:58 +0000 |
commit | 5b2e7c47820d9250b13c71cbbe47ea731bf2b0a4 (patch) | |
tree | 8045ab6a2d5ecc23309050c362c4a39da4253b59 /channel.c | |
parent | b3191152121629c2ed7886d22051be77784520bb (diff) |
move common code in one place
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20513 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r-- | channel.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -3943,8 +3943,6 @@ struct ast_frame *ast_channel_spy_read_frame(struct ast_channel_spy *spy, unsign result = spy->read_queue.head; spy->read_queue.head = NULL; spy->read_queue.samples = 0; - ast_clear_flag(spy, CHANSPY_TRIGGER_FLUSH); - return result; } else { if (ast_test_flag(spy, CHANSPY_WRITE_VOLADJUST)) { for (result = spy->write_queue.head; result; result = result->next) @@ -3953,9 +3951,9 @@ struct ast_frame *ast_channel_spy_read_frame(struct ast_channel_spy *spy, unsign result = spy->write_queue.head; spy->write_queue.head = NULL; spy->write_queue.samples = 0; - ast_clear_flag(spy, CHANSPY_TRIGGER_FLUSH); - return result; } + ast_clear_flag(spy, CHANSPY_TRIGGER_FLUSH); + return result; } if ((spy->read_queue.samples < samples) || (spy->write_queue.samples < samples)) |