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 repeat sometimes stopping at end of file #1509

Merged
merged 1 commit into from
Dec 18, 2020
Merged

Conversation

ahmedre
Copy link
Contributor

@ahmedre ahmedre commented Dec 18, 2020

Gapless files sometimes have a 999 entry, and sometimes don't. When they
don't, playback continues until the end of the file. If a file doesn't
have a 999 entry, it's possible for the file to end before a seek
happens, and for the seek to happen when we're trying to replay the file
insted of seek. This causes an error and causes the playback to stop.

This patch works around this by properly seeking if the end of file is
reached in a gapless file (instead of trying to re-play).

Gapless files sometimes have a 999 entry, and sometimes don't. When they
don't, playback continues until the end of the file. If a file doesn't
have a 999 entry, it's possible for the file to end before a seek
happens, and for the seek to happen when we're trying to replay the file
insted of seek. This causes an error and causes the playback to stop.

This patch works around this by properly seeking if the end of file is
reached in a gapless file (instead of trying to re-play).
@ahmedre ahmedre merged commit bd2184e into master Dec 18, 2020
@ahmedre ahmedre deleted the fix_repeat_last_ayah branch December 18, 2020 19:28
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