Fix for position persisting when queue reset
This commit is contained in:
@@ -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_) {
|
||||||
|
|||||||
Reference in New Issue
Block a user