Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix sink pad ordering #213
Based on #208
This implements a version of the fix detailed in #210 (comment)
Instead of unlinking/relinking, we simply keep new streams unlinked until we decide to trigger an offer, at which point we link them to new request pads. The answerer side keeps them unlinked until it gets a remote offer, at which point it also requests pads and links them to the correctly numbered request pads.
A missing piece was that the payload number also has to match, so we keep track of that too.