[asterisk-commits] file: trunk r100095 - /trunk/main/channel.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jan 23 21:34:57 CST 2008
Author: file
Date: Wed Jan 23 21:34:57 2008
New Revision: 100095
URL: http://svn.digium.com/view/asterisk?view=rev&rev=100095
Log:
Some more cosmetic changes.
Modified:
trunk/main/channel.c
Change Statistics:
0 files changed
Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?view=diff&rev=100095&r1=100094&r2=100095
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Wed Jan 23 21:34:57 2008
@@ -610,10 +610,13 @@
fmts &= AST_FORMAT_AUDIO_MASK;
/* Find the first preferred codec in the format given */
- for (x=0; x < (sizeof(prefs) / sizeof(prefs[0]) ); x++)
+ for (x = 0; x < (sizeof(prefs) / sizeof(prefs[0]) ); x++) {
if (fmts & prefs[x])
return prefs[x];
+ }
+
ast_log(LOG_WARNING, "Don't know any of 0x%x formats\n", fmts);
+
return 0;
}
More information about the asterisk-commits
mailing list