mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-04 02:09:26 +02:00
Fix pause state when transferring (#1444)
This commit is contained in:
parent
4cecb2289a
commit
3a570fc5f1
2 changed files with 2 additions and 1 deletions
|
@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- [discovery] Fix libmdns zerconf setup errors not propagating to the main task.
|
- [discovery] Fix libmdns zerconf setup errors not propagating to the main task.
|
||||||
- [metadata] `Show::trailer_uri` is now optional since it isn't always present (breaking)
|
- [metadata] `Show::trailer_uri` is now optional since it isn't always present (breaking)
|
||||||
- [connect] Handle transfer of playback with empty "uri" field
|
- [connect] Handle transfer of playback with empty "uri" field
|
||||||
|
- [connect] Correctly apply playing/paused state when transferring playback
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|
|
@ -1140,7 +1140,7 @@ impl SpircTask {
|
||||||
_ => 0,
|
_ => 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
let is_playing = matches!(transfer.playback.is_paused, Some(is_playing) if is_playing);
|
let is_playing = !transfer.playback.is_paused();
|
||||||
|
|
||||||
if self.connect_state.current_track(|t| t.is_autoplay()) || autoplay {
|
if self.connect_state.current_track(|t| t.is_autoplay()) || autoplay {
|
||||||
debug!("currently in autoplay context, async resolving autoplay for {ctx_uri}");
|
debug!("currently in autoplay context, async resolving autoplay for {ctx_uri}");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue