playlist: store song hashes in hash map, not a tree
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
#ifndef _PLAYLIST_H
|
#ifndef _PLAYLIST_H
|
||||||
#define _PLAYLIST_H
|
#define _PLAYLIST_H
|
||||||
|
|
||||||
#include <map>
|
#include <unordered_map>
|
||||||
|
|
||||||
#include "interfaces.h"
|
#include "interfaces.h"
|
||||||
#include "screen.h"
|
#include "screen.h"
|
||||||
@@ -93,7 +93,7 @@ private:
|
|||||||
std::string TotalLength();
|
std::string TotalLength();
|
||||||
std::string itsBufferedStats;
|
std::string itsBufferedStats;
|
||||||
|
|
||||||
std::map<size_t, int> itsSongHashes;
|
std::unordered_map<size_t, int> itsSongHashes;
|
||||||
|
|
||||||
size_t itsTotalLength;
|
size_t itsTotalLength;
|
||||||
size_t itsRemainingTime;
|
size_t itsRemainingTime;
|
||||||
|
|||||||
Reference in New Issue
Block a user