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

Fix switching to encoded subtitles causing the video player to hang. #213

Merged
merged 2 commits into from
Dec 3, 2019

Conversation

nielsvanvelzen
Copy link
Member

The .switchSubtitleStream() function calls the stop & play functions which will then call the switch function and this ends up looping.

Adding an additional check if the stream we want to switch to isn't the currently used stream prevents this.

The .switchSubtitleStream() function calls the stop & play functions which would then call the switch function and this ended up looping. Adding an additional check if the to be switched to stream isn't the current already prevents this.
Copy link
Member

@dkanada dkanada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add the logic on the other side of the loop rather than the subtitle method.

@nielsvanvelzen
Copy link
Member Author

I tried that at first but I still got some issues so I used the current solution. I'll have another look at it later this week to see if I can fix it outside of the switchSubtitleStream method.

…title index didn't change when starting playback.
@dkanada dkanada merged commit ac24a6a into jellyfin:master Dec 3, 2019
@nielsvanvelzen nielsvanvelzen deleted the switchSubtitleStream-loop branch December 4, 2019 18:16
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