[asterisk-commits] file: trunk r41865 - /trunk/main/channel.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Sep 3 09:44:49 MST 2006


Author: file
Date: Sun Sep  3 11:44:49 2006
New Revision: 41865

URL: http://svn.digium.com/view/asterisk?rev=41865&view=rev
Log:
Tweak the if statement a bit

Modified:
    trunk/main/channel.c

Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?rev=41865&r1=41864&r2=41865&view=diff
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Sun Sep  3 11:44:49 2006
@@ -1366,16 +1366,14 @@
 				}
 			}
 			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);
 



More information about the asterisk-commits mailing list