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

Postpone tags between about-to-finish and stream-start #1439

Merged
merged 3 commits into from
Feb 14, 2016

Conversation

adamcik
Copy link
Member

@adamcik adamcik commented Feb 13, 2016

Don't think this needs a changlog entry. The bad behavior this fixes was never released.

@adamcik adamcik added the A-audio Area: Audio layer label Feb 13, 2016
@adamcik
Copy link
Member Author

adamcik commented Feb 13, 2016

But the other change I snuck in regarding how often we trigger metadata changed might need one?

@jodal jodal self-assigned this Feb 13, 2016
@jodal
Copy link
Member

jodal commented Feb 13, 2016

LGTM. A changelog entry for the reduced amount tags in the tag_changed event would be nice, even though it should just be positive news for any users of it.

Previously we alerted AudioListeners about all new tags, now we filter it down
to just the changed ones. Only real reason for this is that the changed
messages spam the log output making debugging harder.
When a new URI gets set we create a pending tags dictionary. This gets all the
tags until stream-start, at which point they are all emitted at once. During
track playback tags works as before.

This ensure we don't prematurely tell clients about metadata changes.
@adamcik
Copy link
Member Author

adamcik commented Feb 14, 2016

Added, and rebased due to the changelog conflict.

jodal added a commit that referenced this pull request Feb 14, 2016
Postpone tags between about-to-finish and stream-start
@jodal jodal merged commit 7a8d166 into mopidy:develop Feb 14, 2016
@jodal jodal mentioned this pull request Feb 14, 2016
4 tasks
@adamcik adamcik deleted the fix/1304-postpone-tags branch February 14, 2016 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-audio Area: Audio layer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants