diff options
author | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-27 03:02:35 +0000 |
---|---|---|
committer | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-27 03:02:35 +0000 |
commit | 0796bf7bdcc8e5bdcddeedb493ec68d69f77effd (patch) | |
tree | 7fc3ecae577767c1c0160f19cc87f0a0ba76df19 /channel.c | |
parent | 46006a9ceb05691cd1073bd9880aa5361048cfe3 (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@38327 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r-- | channel.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2328,6 +2328,10 @@ static int set_format(struct ast_channel *chan, int fmt, int *rawformat, int *fo int native; int res; + /* if already in the desired format nothing to do here */ + if (*format == fmt) + return 0; + native = chan->nativeformats; /* Find a translation path from the native format to one of the desired formats */ if (!direction) |