diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-24 03:34:57 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-24 03:34:57 +0000 |
commit | de60bf9c818d682737e7ba272e4803746c25a702 (patch) | |
tree | 3b627828169e6d352d820484b1499b2acde3c589 /main | |
parent | b82f4937c78711837bd44981edba7852a3da745b (diff) |
Some more cosmetic changes.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@100095 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/channel.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c index f4672ca31..eae01c9d2 100644 --- a/main/channel.c +++ b/main/channel.c @@ -610,10 +610,13 @@ int ast_best_codec(int fmts) 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; } |