Skip to content

Fix for an occaisional crash when swapping a media_source's URI#210

Merged
tedwaine merged 1 commit intoAcademySoftwareFoundation:developfrom
kenmcgaugh:media_source_crash
Feb 23, 2026
Merged

Fix for an occaisional crash when swapping a media_source's URI#210
tedwaine merged 1 commit intoAcademySoftwareFoundation:developfrom
kenmcgaugh:media_source_crash

Conversation

@kenmcgaugh
Copy link
Contributor

This fixes an occasional crash I was getting when changing the URI on the currenly viewed media_source. The crash was caused by an uncaught exception on line 1430 where media_streams_.at(base_.current(media_type)) is called. The existence of that entry is tested in the calling lambda but it was changing before this attempt at accessing it.

Repeating the test seemed to be the safest fix although there are other ways of addressing this.

…nging the URI of the currently viewed media_source. This seemed the safest fix although there are others I tried but I was worried about the potential impact on performance.

Signed-off-by: Ken McGaugh <ken@mcgaugh.co.uk>
@tedwaine tedwaine merged commit 9340aea into AcademySoftwareFoundation:develop Feb 23, 2026
2 of 3 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