mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
cc_item_text: add global mutex
This commit is contained in:
@@ -36,7 +36,6 @@
|
||||
#include <fstream>
|
||||
#include <errno.h>
|
||||
#include <system/debug.h>
|
||||
#include <mutex>
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -140,6 +139,8 @@ void CComponentsText::initCBox()
|
||||
|
||||
void CComponentsText::initCCText()
|
||||
{
|
||||
std::lock_guard<std::mutex> g(ct_mutex);
|
||||
|
||||
//set default font, if is no font definied
|
||||
if (ct_font == NULL)
|
||||
ct_font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_INFO];
|
||||
|
Reference in New Issue
Block a user