aboutsummaryrefslogtreecommitdiffstats
path: root/main/channel.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-03 16:44:49 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-03 16:44:49 +0000
commite6175430aa2c973608147e87cd5e1b07a0eab71f (patch)
treed61f93513c87c3b7300d8c85e6c7f6e55e3f0492 /main/channel.c
parent8ff967956b337b9e4fe3ee3dc40ea6df1732e76f (diff)
Tweak the if statement a bit
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41865 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/channel.c')
-rw-r--r--main/channel.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/main/channel.c b/main/channel.c
index 248cf15ad..18e8baa23 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -1366,16 +1366,14 @@ static void queue_frame_to_spies(struct ast_channel *chan, struct ast_frame *f,
}
}
duped_fr = ast_frdup(translated_frame);
- } else {
- if (f->subclass != queue->format) {
- ast_log(LOG_WARNING, "Spy '%s' on channel '%s' wants format '%s', but frame is '%s', dropping\n",
- spy->type, chan->name,
- ast_getformatname(queue->format), ast_getformatname(f->subclass));
- ast_mutex_unlock(&spy->lock);
- continue;
- }
+ } else if (f->subclass != queue->format) {
+ ast_log(LOG_WARNING, "Spy '%s' on channel '%s' wants format '%s', but frame is '%s', dropping\n",
+ spy->type, chan->name,
+ ast_getformatname(queue->format), ast_getformatname(f->subclass));
+ ast_mutex_unlock(&spy->lock);
+ continue;
+ } else
duped_fr = ast_frdup(f);
- }
AST_LIST_INSERT_TAIL(&queue->list, duped_fr, frame_list);