[svn-commits] rmudgett: branch 12 r400373 - /branches/12/channels/chan_vpb.cc

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Oct 3 11:22:46 CDT 2013


Author: rmudgett
Date: Thu Oct  3 11:22:45 2013
New Revision: 400373

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=400373
Log:
chan_vpb: Make compile again.

Modified:
    branches/12/channels/chan_vpb.cc

Modified: branches/12/channels/chan_vpb.cc
URL: http://svnview.digium.com/svn/asterisk/branches/12/channels/chan_vpb.cc?view=diff&rev=400373&r1=400372&r2=400373
==============================================================================
--- branches/12/channels/chan_vpb.cc (original)
+++ branches/12/channels/chan_vpb.cc Thu Oct  3 11:22:45 2013
@@ -2673,10 +2673,12 @@
 	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));




More information about the svn-commits mailing list