Skip to content

Conversation

@joprice
Copy link

@joprice joprice commented Jul 13, 2023

This fixes a bug where adding multiple inputs or outputs to a graph causes at most two of them two be inserted. The result is errors such as

Input pad "default" with type audio of the filter instance "out2" of abuffersink not connected to any source

when calling validate. The fix walks the linked list and appends the new node to the end. This operation is linear, with the assumption that inputs and outputs are small and building the graph happens infrequently.

I added a test which reproduces the issue for both inputs and outputs.

This fixes a bug where adding multiple inputs or outputs to a graph
causes at most two of them two be inserted. The result is errors such as

Input pad "default" with type audio of the filter instance "out2" of abuffersink not connected to any source

when calling validate. The fix walks the linked list and appends the new
node to the end. This operation is linear, with the assumption that
inputs and outputs are small and building the graph happens
infrequently.

I added a test which reproduces the issue for both inputs and outputs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant