changeset 08932942dffe in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=08932942dffe description: ignore invalid payload types. Fixes #5919
diffstat:
src/common/jingle_rtp.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r ac3413a7823b -r 08932942dffe src/common/jingle_rtp.py --- a/src/common/jingle_rtp.py Tue Sep 21 21:44:04 2010 +0200 +++ b/src/common/jingle_rtp.py Thu Sep 23 13:05:33 2010 +0200 @@ -246,6 +246,9 @@
codecs = [] for codec in content.getTag('description').iterTags('payload-type'): + if not codec['id'] or not codec['name'] or not codec['clockrate']: + # ignore invalid payload-types + continue c = farsight.Codec(int(codec['id']), codec['name'], self.farsight_media, int(codec['clockrate'])) if 'channels' in codec: