From cd4611d5cde7c1b07021f954b44ed267c739b181 Mon Sep 17 00:00:00 2001 From: jojo61 Date: Fri, 11 Oct 2019 13:35:52 +0200 Subject: [PATCH] Improve skindesigner handling --- openglosd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openglosd.cpp b/openglosd.cpp index 75c63b5..c69af55 100644 --- a/openglosd.cpp +++ b/openglosd.cpp @@ -2077,7 +2077,8 @@ cOglOsd::cOglOsd(int Left, int Top, uint Level, std::shared_ptr oglT isSubtitleOsd = false; int osdWidth = 0; int osdHeight = 0; - + + pthread_mutex_lock(&OSDMutex); VideoGetOsdSize(&osdWidth, &osdHeight); // osdWidth = 1920; // osdHeight = 1080; @@ -2100,6 +2101,7 @@ cOglOsd::cOglOsd(int Left, int Top, uint Level, std::shared_ptr oglT #ifdef VAAPI OSD_release_context(); #endif + pthread_mutex_unlock(&OSDMutex); } cOglOsd::~cOglOsd() {