Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix graph input/output linked list insertion #156

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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