mirror of
https://git.suyu.dev/suyu/suyu
synced 2026-05-18 03:45:45 +00:00
Using reserve() for optimization inserts, marked unused pair items and minor code refactor
This commit is contained in:
committed by
chaphidoesstuff
parent
9490b5264e
commit
e886f27816
@@ -45,7 +45,7 @@ public:
|
||||
// Vic does not know which nvdec is producing frames for it, so search all the fds here for
|
||||
// the given offset.
|
||||
for (auto& map : m_presentation_order) {
|
||||
for (auto& [offset, frame] : map.second) {
|
||||
for (auto& [offset, _] : map.second) {
|
||||
if (offset == search_offset) {
|
||||
return map.first;
|
||||
}
|
||||
@@ -53,7 +53,7 @@ public:
|
||||
}
|
||||
|
||||
for (auto& map : m_decode_order) {
|
||||
for (auto& [offset, frame] : map.second) {
|
||||
for (auto& [offset, _] : map.second) {
|
||||
if (offset == search_offset) {
|
||||
return map.first;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user