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

Add info about change in default flow control value #673

Merged
merged 4 commits into from
Nov 7, 2023

Conversation

FelonEkonom
Copy link
Member

No description provided.

@FelonEkonom FelonEkonom requested a review from mat-hek as a code owner November 6, 2023 15:41
@FelonEkonom FelonEkonom added the no-changelog This label has to be added if changes from the PR are not meant to be placed in the CHANGELOG.md label Nov 6, 2023
@@ -51,6 +51,24 @@ end
end
```

### Adjust to change in default `flow_control` (aka. `mode`/`demand_mode`) value.

Now, if definition of pad in element does specify type of
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leftover?


Now, if definition of pad in element does specify type of

Now, the default value of `flow_control` option in `def_input_pad` and `def_output_pad` in Elements is `:auto`. Until `v0.12.9`, pads that sepcified neither `flow_control`, `mode` nor `demand_mode` explicitly would have `:manual` `flow_control`. Therefore, `:manual` pads that haven't specified `flow_control` value, now have to do it explicitly.
Copy link
Member

@mat-hek mat-hek Nov 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it only affects outputs, because for inputs you have to specify demand_unit

Comment on lines 100 to 101
- def_output_pad :input, accepted_format: %MyStruct{field: :value}
+ def_output_pad :input, accepted_format: %MyStruct{field: :value}, flow_control: :manual
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- def_output_pad :input, accepted_format: %MyStruct{field: :value}
+ def_output_pad :input, accepted_format: %MyStruct{field: :value}, flow_control: :manual
- def_output_pad :output, accepted_format: %MyStruct{field: :value}
+ def_output_pad :output, accepted_format: %MyStruct{field: :value}, flow_control: :manual

@FelonEkonom FelonEkonom requested a review from mat-hek November 7, 2023 13:37
@FelonEkonom FelonEkonom merged commit 455a76b into master Nov 7, 2023
1 check passed
@FelonEkonom FelonEkonom deleted the fix-upgrading-guide-1.0 branch November 7, 2023 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog This label has to be added if changes from the PR are not meant to be placed in the CHANGELOG.md
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants