Skip to content

Commit eb8fffa

Browse files
committed
Fix the stats order.
1 parent 32c1ad2 commit eb8fffa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SerialPrograms/Source/CommonFramework/VideoPipeline/VideoOverlaySession.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ void VideoOverlaySession::stats_thread(){
8080
{
8181
std::vector<OverlayStatSnapshot> lines;
8282
ReadSpinLock lg0(m_lock);
83-
for (const auto& stat : m_stats){
84-
OverlayStatSnapshot snapshot = stat.first->get_current();
83+
for (const auto& stat : m_stats_order){
84+
OverlayStatSnapshot snapshot = stat->get_current();
8585
if (!snapshot.text.empty()){
8686
lines.emplace_back(std::move(snapshot));
8787
}

0 commit comments

Comments
 (0)