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

[3.x] Fix crash when passing null to AudioStreamPlayer::set_stream() #59829

Merged
merged 1 commit into from
Apr 3, 2022

Conversation

RandomShaper
Copy link
Member

Passing a null stream is valid, the meaning being to clear the current one without setting a new one.

I think this was just an overlook in recent changes.

@akien-mga
Copy link
Member

Regression from #59413, should also be fixed in 2D and 3D players.

@akien-mga akien-mga modified the milestones: 3.x, 3.5 Apr 3, 2022
@RandomShaper RandomShaper force-pushed the fix_null_stream_crash_3.x branch from 6cb5046 to 9e2d512 Compare April 3, 2022 10:52
@RandomShaper RandomShaper requested review from a team as code owners April 3, 2022 10:52
@RandomShaper
Copy link
Member Author

Done!

@ellenhp
Copy link
Contributor

ellenhp commented Apr 3, 2022

Thanks for catching that!

@ellenhp ellenhp merged commit a5f9e1c into godotengine:3.x Apr 3, 2022
@RandomShaper RandomShaper deleted the fix_null_stream_crash_3.x branch April 3, 2022 16:49
@akien-mga
Copy link
Member

Cherry-picked for 3.4.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants