From 35dd15af7911a6faad991bd9beee416578c1c940 Mon Sep 17 00:00:00 2001 From: philippe44 Date: Wed, 4 Oct 2023 23:12:48 -0700 Subject: [PATCH] choose innerFrame --- cspot/src/TrackQueue.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cspot/src/TrackQueue.cpp b/cspot/src/TrackQueue.cpp index afeef572..e1d3584b 100644 --- a/cspot/src/TrackQueue.cpp +++ b/cspot/src/TrackQueue.cpp @@ -522,10 +522,10 @@ bool TrackQueue::queueNextTrack(int offset, uint32_t positionMs) { bool TrackQueue::skipTrack(SkipDirection dir, bool expectNotify) { bool canSkipNext = currentTracks.size() > currentTracksIndex + 1; bool canSkipPrev = currentTracksIndex > 0; - uint64_t position = !playbackState->remoteFrame.state.has_position_ms ? 0 : - playbackState->remoteFrame.state.position_ms + + uint64_t position = !playbackState->innerFrame.state.has_position_ms ? 0 : + playbackState->innerFrame.state.position_ms + ctx->timeProvider->getSyncedTimestamp() - - playbackState->remoteFrame.state.position_measured_at; + playbackState->innerFrame.state.position_measured_at; if (dir == SkipDirection::PREV && (currentTracksIndex == 0 || position > 3000)) { queueNextTrack(0);