summaryrefslogtreecommitdiff
path: root/src/tangara/audio/track_queue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tangara/audio/track_queue.cpp')
-rw-r--r--src/tangara/audio/track_queue.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tangara/audio/track_queue.cpp b/src/tangara/audio/track_queue.cpp
index 51f17a8f..ecf33c74 100644
--- a/src/tangara/audio/track_queue.cpp
+++ b/src/tangara/audio/track_queue.cpp
@@ -235,6 +235,8 @@ auto TrackQueue::next(Reason r) -> void {
{
const std::unique_lock<std::shared_mutex> lock(mutex_);
+ auto pos = position_;
+
if (shuffle_) {
shuffle_->next();
position_ = shuffle_->current();
@@ -243,7 +245,9 @@ auto TrackQueue::next(Reason r) -> void {
position_++;
}
}
+
goTo(position_);
+ changed = pos != position_;
}
notifyChanged(changed, r);