Fix for position persisting when queue reset

custom
ailurux 8 months ago
parent ff7468635f
commit 022aa38396
  1. 1
      src/tangara/audio/track_queue.cpp

@ -286,6 +286,7 @@ auto TrackQueue::finish() -> void {
auto TrackQueue::clear() -> void { auto TrackQueue::clear() -> void {
{ {
const std::unique_lock<std::shared_mutex> lock(mutex_); const std::unique_lock<std::shared_mutex> lock(mutex_);
position_ = 0;
playlist_.clear(); playlist_.clear();
opened_playlist_.reset(); opened_playlist_.reset();
if (shuffle_) { if (shuffle_) {

Loading…
Cancel
Save