mrp: MSRP: bugfix for 4 listener stream case
authorAndrew Elder <aelder@audioscience.com>
Fri, 29 Mar 2013 21:11:13 +0000 (17:11 -0400)
committerAndrew Elder <aelder@audioscience.com>
Mon, 20 May 2013 20:42:09 +0000 (16:42 -0400)
commit49b2643f393e022bf0179e5df6dc8329de1dd2d8
tree7bada1f91da08545ef840d5caf14aca53e5fc377
parent850108b42c29b4881d49b3d35e3c7bca3a832f89
mrp: MSRP: bugfix for 4 listener stream case

This checkin fixes 2 issues in msrp_emit_listenvectors():
1) when listener streams with incrementing stream ID are registered
the attributes are aggregated, but there was no test for whether the
attribute had already been tx'd, so stream declarations were repeated.
The fix is to mark all attributes for tx before looping through the tx
pack operation and then test the tx flag inside the tx pack loop.
2) incorrect conditional in vect_4pack operation
daemons/mrpd/msrp.c