Skip to content

Don't write default values for fixed parameters - #321

Merged
rsjbailey merged 2 commits into
mainfrom
redundant-blocks
Oct 5, 2026
Merged

rsjbailey merged 2 commits into
mainfrom
redundant-blocks

Conversation

@rsjbailey

Copy link
Copy Markdown
Contributor

EPS was adding the default values of non-varying parameters in the first and last audioBlockFormat

While not technically incorrect (the values are the same as would be implied if they were absent), it's unnecessary noise, and inconsistent with them being absent in intermediate audioBlockFormats.

This PR filters out non-varying default value points in the function that generates these values

It also fixes a crash bug present where a non-writable path is passed to the ADM pcm sink. In normal circumstances this can't happen, as the path picker only lets you choose valid places to export, but if you import a session to a new machine with a default location saved that is not present, you can hit the bug.

It currently just conceals the problem and fails to export, but that's better than a hard crash. Will add a new issue to wire up error reporting and/or export cancellation so we can feed back the problem to the user.

This only happens if you open a project with a stale location - normally the
picker would prevent you from giving a bad output destination.

Currently fails silently, but an improvement over a hard crash

@davemar-bbc davemar-bbc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks fine to me.

@rsjbailey
rsjbailey merged commit eb8aeec into main Oct 5, 2026
7 checks passed
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.

2 participants