decoder: use atomic int instead of mutex for access time

Prevents main thread from getting hung up if the decoder is doing something slow
This commit is contained in:
itsmattkc
2022-10-10 18:54:45 -07:00
parent cae71f011d
commit bb63b6968c
2 changed files with 1 additions and 13 deletions
+1 -1
View File
@@ -315,7 +315,7 @@ private:
QMutex mutex_;
qint64 last_accessed_;
std::atomic_int64_t last_accessed_;
TexturePtr cached_texture_;
rational cached_time_;