Improve skindesigner handling

This commit is contained in:
jojo61 2019-10-11 13:35:52 +02:00
parent 06918ebbd2
commit cd4611d5cd
1 changed files with 3 additions and 1 deletions

View File

@ -2077,7 +2077,8 @@ cOglOsd::cOglOsd(int Left, int Top, uint Level, std::shared_ptr<cOglThread> 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<cOglThread> oglT
#ifdef VAAPI
OSD_release_context();
#endif
pthread_mutex_unlock(&OSDMutex);
}
cOglOsd::~cOglOsd() {