diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-18 15:57:30 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-18 15:57:30 +0000 |
commit | a51f0482f6c1e9814d2144a5d33bfc8e8bda3fef (patch) | |
tree | a1ca6e3865118a8c24335312308454caf1ccb730 /codecs | |
parent | 2c1d45aef42c7a2e75c99e2954f69f71ee087270 (diff) |
Merged revisions 86296 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r86296 | russell | 2007-10-18 10:45:55 -0500 (Thu, 18 Oct 2007) | 3 lines
Execute the RELEASE operation on transcoder channels in the destroy callback.
(patch from jsloan)
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86297 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs')
-rw-r--r-- | codecs/codec_zap.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/codecs/codec_zap.c b/codecs/codec_zap.c index 0ac154827..8bd87f5fd 100644 --- a/codecs/codec_zap.c +++ b/codecs/codec_zap.c @@ -218,6 +218,11 @@ static struct ast_frame *zap_frameout(struct ast_trans_pvt *pvt) static void zap_destroy(struct ast_trans_pvt *pvt) { struct pvt *ztp = pvt->pvt; + unsigned int x; + + x = ZT_TCOP_RELEASE; + if (ioctl(ztp->fd, ZT_TRANSCODE_OP, &x)) + ast_log(LOG_WARNING, "Failed to release transcoder channel: %s\n", strerror(errno)); ast_atomic_fetchadd_int(&channels.total, -1); switch (ztp->hdr->dstfmt) { |