Skip to content

sdk: fix nil-map panic in FetchMediaAudio#7

Open
themactep wants to merge 1 commit intojfsmig:masterfrom
themactep:fix-media-audio-outputs-nil-map
Open

sdk: fix nil-map panic in FetchMediaAudio#7
themactep wants to merge 1 commit intojfsmig:masterfrom
themactep:fix-media-audio-outputs-nil-map

Conversation

@themactep
Copy link

Summary

  • initialize Audio.Outputs before assigning entries in FetchMediaAudio
  • create a placeholder AudioOutput when an output configuration references an unseen OutputToken

Problem

dump all could panic with assignment to entry in nil map while collecting audio data.

Validation

  • go test ./...

Initialize Audio.Outputs before assigning entries and create placeholder outputs when configuration references unknown OutputToken values.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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