Skip to content

Conversation

@garethsb
Copy link
Contributor

@garethsb garethsb commented Jan 7, 2025

Add _or_defaults versions of the format-specific parameters parsing functions; the current functions throw when required parameters are omitted. The intention is the new functions are for parsing partial fmtp lines, not handling invalid values, so they can still throw in those circumstances.

I should probably add _or_defaults versions for the other three media types even though none of those have required parameters, just so the naming and intended usage is clear?

Since an 'empty' fmtp attribute would appear the same at this abstraction, it's better to rely on reporting omission of specific required format-specific parameters
…equired parameters are omitted - these functions still throw if they encounter invalid values
@lo-simon
Copy link
Collaborator

It looks good to me, and yes, it would definitely be beneficial to add the _or_defaults to the other media types for completeness.

@jonathan-r-thorpe jonathan-r-thorpe merged commit 0b4c4ba into sony:master Jan 17, 2025
9 checks passed
@garethsb garethsb deleted the fmtp-refactor branch July 22, 2025 08:19
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.

3 participants