[Asterisk-cvs] asterisk frame.c,1.39,1.40
anthm at lists.digium.com
anthm at lists.digium.com
Thu Dec 2 20:17:45 CST 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv18333
Modified Files:
frame.c
Log Message:
one more disallow issue resolved disallow=all in peer must flush prefs list
Index: frame.c
===================================================================
RCS file: /usr/cvsroot/asterisk/frame.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- frame.c 3 Dec 2004 01:05:40 -0000 1.39
+++ frame.c 3 Dec 2004 01:16:11 -0000 1.40
@@ -982,7 +982,8 @@
ast_codec_pref_append(pref, format_i);
else
ast_codec_pref_remove(pref, format_i);
- }
+ } else if(!allowing) /* disallow all must clear your prefs or it makes no sense */
+ memset(pref, 0, sizeof(struct ast_codec_pref));
} else
ast_log(LOG_WARNING, "Cannot %s unknown format '%s'\n", allowing ? "allow" : "disallow", last_format);
More information about the svn-commits
mailing list