summaryrefslogtreecommitdiff
path: root/include/asterisk/channel.h
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-06-22 17:05:17 +0000
committerRussell Bryant <russell@russellbryant.com>2006-06-22 17:05:17 +0000
commit46018d50321331c5d094a002f5f40540c8e7f052 (patch)
tree09e0da9c9e65e62322d7b473d2f44a59feef1bbb /include/asterisk/channel.h
parentcad05d819b9da523c4ab8d8a922bd2204b07a994 (diff)
- dynamically allocate the ast_jb structure that is on the channel structure
so that channels not using a jitterbuffer don't waste as much memory - ensure that the channel drivers that use jitterbuffers can handle a failure from configuring a jitterbuffer on a new channel because of a memory allocation error - On passing through these channel drivers, configure the jitterbuffer before starting the PBX thread instead of afterwards. If the pbx fails to start for whatever reason, this would have caused a crash. - Also on passing, move the increase of the usecount to after all of the possible failure conditions in the function - fix a place where ast_update_use_count() was not called - ensure that the owner channel pointer of the channel pvt strcutures is set to NULL in failure conditions git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35553 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/channel.h')
-rw-r--r--include/asterisk/channel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index 3d842bbe3..0168b90fa 100644
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -383,7 +383,7 @@ struct ast_channel {
struct ast_channel_spy_list *spies; /*!< Chan Spy stuff */
AST_LIST_ENTRY(ast_channel) chan_list; /*!< For easy linking */
- struct ast_jb jb; /*!< The jitterbuffer state */
+ struct ast_jb *jb; /*!< The jitterbuffer state */
/*! \brief Data stores on the channel */
AST_LIST_HEAD_NOLOCK(datastores, ast_datastore) datastores;