From 175abd491477677598bcacd666de950d5d480a87 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 23 Feb 2021 17:23:40 +1000 Subject: [PATCH] CommonHostInterface: Filter OSD messages in acquire for disabled case --- src/frontend-common/common_host_interface.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/frontend-common/common_host_interface.cpp b/src/frontend-common/common_host_interface.cpp index 800d2a61a..264a18d54 100644 --- a/src/frontend-common/common_host_interface.cpp +++ b/src/frontend-common/common_host_interface.cpp @@ -957,12 +957,6 @@ bool CommonHostInterface::EnumerateOSDMessages(std::functiontext, time_remaining)) return false; @@ -994,7 +988,9 @@ void CommonHostInterface::AcquirePendingOSDMessages() if (m_osd_posted_messages.empty()) break; - m_osd_active_messages.push_back(std::move(m_osd_posted_messages.front())); + if (g_settings.display_show_osd_messages) + m_osd_active_messages.push_back(std::move(m_osd_posted_messages.front())); + m_osd_posted_messages.pop_front(); // somewhat arbitrary hard cap on # of messages. This might be unnecessarily paranoid. If something is