From 72fbce14f427109166d13a6b135c2092b01fae9b Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Thu, 3 Oct 2013 16:22:45 +0000 Subject: [PATCH] chan_vpb: Make compile again. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@400373 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_vpb.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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));