mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-24 06:53:41 +00:00
chan_vpb: Make compile again.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@400373 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user