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 recreation of currentsong.txt #655

Closed
wants to merge 0 commits into from
Closed

Conversation

akelge
Copy link

@akelge akelge commented Feb 19, 2024

Currenty currentsong.txt is updated if some fields changed, but the comparison $fileMeta['outrate'] != $hwParamsFormat . $hwParamsCalcrate) will always fail, cause actually in the file we write $current['output'] . $hwParamsCalcrate . "\n";.
This way the file is updated even when the player is in stop or pause mode.

This patch fixes the comparison and adds a comparison $fileMeta['bitrate'] != $current['bitrate'] to trigger an update of currentsong.txt in case the bitrate changes.

@akelge
Copy link
Author

akelge commented Feb 25, 2024

Included in the 8.3.9 release

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.

None yet

1 participant