From: Kevin P. Fleming Date: Thu, 7 Aug 2008 17:26:23 +0000 (+0000) Subject: stop using deprecated API call X-Git-Tag: 1.6.2.0-beta1~1480 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ec4952cf7302f8579572e8fcae780c32bba75a15;p=thirdparty%2Fasterisk.git stop using deprecated API call git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@136504 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_jack.c b/apps/app_jack.c index 46d36573f9..3ce1fc822a 100644 --- a/apps/app_jack.c +++ b/apps/app_jack.c @@ -859,7 +859,7 @@ static int enable_jack_hook(struct ast_channel *chan, char *data) if (init_jack_data(chan, jack_data)) goto return_error; - if (!(datastore = ast_channel_datastore_alloc(&jack_hook_ds_info, NULL))) + if (!(datastore = ast_datastore_alloc(&jack_hook_ds_info, NULL))) goto return_error; jack_data->has_audiohook = 1; @@ -908,7 +908,7 @@ static int disable_jack_hook(struct ast_channel *chan) /* Keep the channel locked while we destroy the datastore, so that we can * ensure that all of the jack stuff is stopped just in case another frame * tries to come through the audiohook callback. */ - ast_channel_datastore_free(datastore); + ast_datastore_free(datastore); ast_channel_unlock(chan);