diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-19 22:35:23 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-02-19 22:35:23 +0000 |
commit | dac6eeb7805aed4980b62b0cb5568b84732c81db (patch) | |
tree | 323faa1ab6dccdfc919f94aed0b1fc4ad8533061 /main | |
parent | fecba4625093c0008873129a5bf78cf3c1a973dc (diff) |
Make sure to mask out non-audio first as well
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103832 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/channel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/channel.c b/main/channel.c index cece084fb..ecebc7062 100644 --- a/main/channel.c +++ b/main/channel.c @@ -3095,14 +3095,14 @@ static int set_format(struct ast_channel *chan, int fmt, int *rawformat, int *fo int native; int res; + /* Make sure we only consider audio */ + fmt &= AST_FORMAT_AUDIO_MASK; + native = chan->nativeformats; if (!fmt || !native) /* No audio requested */ return 0; /* Let's try a call without any sounds (video, text) */ - /* Make sure we only consider audio */ - fmt &= AST_FORMAT_AUDIO_MASK; - /* Find a translation path from the native format to one of the desired formats */ if (!direction) /* reading */ |