mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@86297 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -218,6 +218,11 @@ static struct ast_frame *zap_frameout(struct ast_trans_pvt *pvt)
|
|||||||
static void zap_destroy(struct ast_trans_pvt *pvt)
|
static void zap_destroy(struct ast_trans_pvt *pvt)
|
||||||
{
|
{
|
||||||
struct pvt *ztp = 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);
|
ast_atomic_fetchadd_int(&channels.total, -1);
|
||||||
switch (ztp->hdr->dstfmt) {
|
switch (ztp->hdr->dstfmt) {
|
||||||
|
Reference in New Issue
Block a user