[asterisk-commits] dvossel: branch dvossel/fixtheworld_phase2 r307673 - in /team/dvossel/fixthew...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Feb 11 13:04:20 CST 2011
Author: dvossel
Date: Fri Feb 11 13:04:16 2011
New Revision: 307673
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=307673
Log:
Addresses minor issues found during review
Modified:
team/dvossel/fixtheworld_phase2/codecs/codec_speex.c
team/dvossel/fixtheworld_phase2/main/format.c
Modified: team/dvossel/fixtheworld_phase2/codecs/codec_speex.c
URL: http://svnview.digium.com/svn/asterisk/team/dvossel/fixtheworld_phase2/codecs/codec_speex.c?view=diff&rev=307673&r1=307672&r2=307673
==============================================================================
--- team/dvossel/fixtheworld_phase2/codecs/codec_speex.c (original)
+++ team/dvossel/fixtheworld_phase2/codecs/codec_speex.c Fri Feb 11 13:04:16 2011
@@ -398,7 +398,7 @@
};
static struct ast_translator lin32tospeexuwb = {
- .name = "lin32tospeexwb",
+ .name = "lin32tospeexuwb",
.newpvt = lin32tospeexuwb_new,
.framein = lintospeex_framein,
.frameout = lintospeex_frameout,
Modified: team/dvossel/fixtheworld_phase2/main/format.c
URL: http://svnview.digium.com/svn/asterisk/team/dvossel/fixtheworld_phase2/main/format.c?view=diff&rev=307673&r1=307672&r2=307673
==============================================================================
--- team/dvossel/fixtheworld_phase2/main/format.c (original)
+++ team/dvossel/fixtheworld_phase2/main/format.c Fri Feb 11 13:04:16 2011
@@ -1167,8 +1167,7 @@
} else if (!strcasecmp(var->name, "fec")) {
settings.usefec = ast_true(var->value) ? 1 : 0;
} else if (!strcasecmp(var->name, "packetloss_percentage")) {
- if ((sscanf(var->value, "%30u", &settings.packetloss_percentage) != 1) ||
- (settings.packetloss_percentage >= 0) || (settings.packetloss_percentage <= 100)) {
+ if ((sscanf(var->value, "%30u", &settings.packetloss_percentage) != 1) || (settings.packetloss_percentage > 100)) {
ast_log(LOG_WARNING, "packetloss_percentage '%s' at line %d of %s is not supported.\n",
var->value, var->lineno, FORMAT_CONFIG);
}
More information about the asterisk-commits
mailing list