Skip to content

Commit

Permalink
Minimize audio pop when using owntone with metadata pipe (fixes #389)
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Oct 23, 2021
1 parent e06e3ac commit 88149a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,6 @@ public void onContextChanged(@NotNull Player player, @NotNull String newUri) {

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

@Override
Expand Down Expand Up @@ -1052,6 +1051,7 @@ public void onStartedLoading(@NotNull Player player) {

@Override
public void onFinishedLoading(@NotNull Player player) {
dacpPipe.sendPipeFlush();
}
});
}
Expand Down

0 comments on commit 88149a2

Please sign in to comment.