Skip to content

Commit

Permalink
Fix pause state when transferring (#1444)
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioGNR authored Jan 12, 2025
1 parent 4cecb22 commit 3a570fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
- [metadata] `Show::trailer_uri` is now optional since it isn't always present (breaking)
- [connect] Handle transfer of playback with empty "uri" field
- [connect] Correctly apply playing/paused state when transferring playback

### Removed

Expand Down
2 changes: 1 addition & 1 deletion connect/src/spirc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,7 @@ impl SpircTask {
_ => 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 {
debug!("currently in autoplay context, async resolving autoplay for {ctx_uri}");
Expand Down

0 comments on commit 3a570fc

Please sign in to comment.