From: Richard Mudgett Date: Thu, 3 Oct 2013 16:28:35 +0000 (+0000) Subject: chan_vpb: Make compile again. X-Git-Tag: 13.0.0-beta1~1004 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3d69a5628d249a7909690a14ec8c1d95401e578;p=thirdparty%2Fasterisk.git chan_vpb: Make compile again. ........ Merged revisions 400373 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@400374 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_vpb.cc b/channels/chan_vpb.cc index f031ad55dd..12f27249b1 100644 --- a/channels/chan_vpb.cc +++ b/channels/chan_vpb.cc @@ -2673,10 +2673,12 @@ static enum ast_module_load_result load_module() struct ast_format tmpfmt; int num_cards = 0; - if (!(vpb_tech.capabilities = ast_format_cap_alloc())) { + vpb_tech.capabilities = ast_format_cap_alloc((enum ast_format_cap_flags) 0); + if (!vpb_tech.capabilities) { return AST_MODULE_LOAD_DECLINE; } - if (!(vpb_tech_indicate.capabilities = ast_format_cap_alloc())) { + vpb_tech_indicate.capabilities = ast_format_cap_alloc((enum ast_format_cap_flags) 0); + if (!vpb_tech_indicate.capabilities) { return AST_MODULE_LOAD_DECLINE; } ast_format_cap_add(vpb_tech.capabilities, ast_format_set(&tmpfmt, AST_FORMAT_SLINEAR, 0));