Skip to content

Commit 88149a2

Browse files
committed
Minimize audio pop when using owntone with metadata pipe (fixes #389)
1 parent e06e3ac commit 88149a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • player/src/main/java/xyz/gianlu/librespot/player

player/src/main/java/xyz/gianlu/librespot/player/Player.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,6 @@ public void onContextChanged(@NotNull Player player, @NotNull String newUri) {
981981

982982
@Override
983983
public void onTrackChanged(@NotNull Player player, @NotNull PlayableId id, @Nullable MetadataWrapper metadata, boolean userInitiated) {
984-
if (userInitiated) dacpPipe.sendPipeFlush();
985984
}
986985

987986
@Override
@@ -1052,6 +1051,7 @@ public void onStartedLoading(@NotNull Player player) {
10521051

10531052
@Override
10541053
public void onFinishedLoading(@NotNull Player player) {
1054+
dacpPipe.sendPipeFlush();
10551055
}
10561056
});
10571057
}

0 commit comments

Comments
 (0)