diff options
author | sruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2009-01-07 19:55:39 +0000 |
---|---|---|
committer | sruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2009-01-07 19:55:39 +0000 |
commit | 70ddcbed42347736cccfec676ad5e15f5126bddc (patch) | |
tree | 8c2a043fe230eadb5486e0a915f3fa2872de4f6c | |
parent | d5e2fc21510aa0c57a7c420498b212bbc00d78ac (diff) |
Set that the channel is busy even when it is already built. This is already
done in DAHDI and was an error when back porting.
Issue: DAHDI-231
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4612 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r-- | kernel/zttranscode.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/zttranscode.c b/kernel/zttranscode.c index 1defc51..58d098c 100644 --- a/kernel/zttranscode.c +++ b/kernel/zttranscode.c @@ -199,8 +199,10 @@ get_free_channel(struct zt_transcoder *tc, const struct zt_transcoder_formats *f * make sure that it can support the formats * that we're interested in. */ if ((fmts->srcfmt|fmts->dstfmt) == - chan->built_fmts) + chan->built_fmts) { + zt_tc_set_busy(chan); return chan; + } } } } |