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 bug 871, 'IcMetadata.Info can be stale' #884

Open
wants to merge 11 commits into
base: minor
Choose a base branch
from
Open
46 changes: 46 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions just_audio/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Add a package parameter to AudioPlayer.setAsset() (@ewertonls).
* Add AudioSource.asset(), AudioSource.file().
* Fix tests for dart-sdk 2.5 (@ewertonls).
* Fix bug 871, stale icyMetadata shows previous stream's info and url.

## 0.9.30

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ public void onTracksChanged(Tracks tracks) {
final Metadata.Entry entry = metadata.get(k);
if (entry instanceof IcyHeaders) {
icyHeaders = (IcyHeaders) entry;
// null out info if interval is unset (bug 871)
if (icyHeaders.metadataInterval == C.LENGTH_UNSET) {
icyInfo = null;
}
broadcastImmediatePlaybackEvent();
}
}
Expand Down