Skip to content

Commit 3a570fc

Browse files
authored
Fix pause state when transferring (#1444)
1 parent 4cecb22 commit 3a570fc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3434
- [discovery] Fix libmdns zerconf setup errors not propagating to the main task.
3535
- [metadata] `Show::trailer_uri` is now optional since it isn't always present (breaking)
3636
- [connect] Handle transfer of playback with empty "uri" field
37+
- [connect] Correctly apply playing/paused state when transferring playback
3738

3839
### Removed
3940

connect/src/spirc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ impl SpircTask {
11401140
_ => 0,
11411141
};
11421142

1143-
let is_playing = matches!(transfer.playback.is_paused, Some(is_playing) if is_playing);
1143+
let is_playing = !transfer.playback.is_paused();
11441144

11451145
if self.connect_state.current_track(|t| t.is_autoplay()) || autoplay {
11461146
debug!("currently in autoplay context, async resolving autoplay for {ctx_uri}");

0 commit comments

Comments
 (0)