Closed GoogleCodeExporter closed 9 years ago
Fixed on Dec 1, 2009.
Hi Valery,
I found the problem and sent the fixes in rtmp.py.
The bug was in this line:
def __init__(self, hdr=Header(), data=''):
Changed this to:
def __init__(self, hdr=None, data=''):
if hdr is None: hdr = Header()
The reason being: Python uses the default argument of non-primitive
types as persistent object. So multiple calls to this function was
re-using the same Header object, causing problems when header item was
changed...
After this change, I also changed all the classes (except the
exception class) to use new style class definition derived from
object.
Original comment by voiprese...@gmail.com
on 3 Feb 2011 at 7:15
Original issue reported on code.google.com by
voiprese...@gmail.com
on 3 Feb 2011 at 7:13