changeset 974491837e04 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=974491837e04
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 abbb452ce234 -r 974491837e04 src/common/jingle_rtp.py
--- a/src/common/jingle_rtp.py  Sun Sep 19 22:14:43 2010 +0200
+++ b/src/common/jingle_rtp.py  Thu Sep 23 13:05:33 2010 +0200
@@ -250,6 +250,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:
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to