[asterisk-commits] trunk r20513 - /trunk/channel.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sun Apr 16 08:28:00 MST 2006
Author: rizzo
Date: Sun Apr 16 10:27:58 2006
New Revision: 20513
URL: http://svn.digium.com/view/asterisk?rev=20513&view=rev
Log:
move common code in one place
Modified:
trunk/channel.c
Modified: trunk/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/channel.c?rev=20513&r1=20512&r2=20513&view=diff
==============================================================================
--- trunk/channel.c (original)
+++ trunk/channel.c Sun Apr 16 10:27:58 2006
@@ -3943,8 +3943,6 @@
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 @@
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))
More information about the asterisk-commits
mailing list