Skip to content

Fix crash when trying to report playback progress when there is no current stream #4270

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

Merged

Conversation

nielsvanvelzen
Copy link
Member

When the stream needs to be recreated to change audio streams (e.g. transcoding/external stream etc.) the app sets the current stream to null and once the new stream info is ready it will be set again. It does stop all progress reporting for that (normally short) duration.

However, if you try to seek during that time period it will try to report progress which will fail and crash the app.

Changes

  • Add a check for null before trying to start a report loop

Issues

Should fix #4254

@nielsvanvelzen nielsvanvelzen added bug Something isn't working crash Bug causing app crashes labels Dec 5, 2024
@nielsvanvelzen nielsvanvelzen added this to the v0.18.1 milestone Dec 5, 2024
@nielsvanvelzen nielsvanvelzen merged commit 006a6d0 into jellyfin:master Dec 5, 2024
5 checks passed
@nielsvanvelzen nielsvanvelzen deleted the no-streamless-reports branch December 5, 2024 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crash Bug causing app crashes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

app crash with 0.18
2 participants