diff --git a/softhdcuvid.cpp b/softhdcuvid.cpp index 5f94eaf..76f19b1 100644 --- a/softhdcuvid.cpp +++ b/softhdcuvid.cpp @@ -61,7 +61,7 @@ extern void ToggleLUT(); /// vdr-plugin version number. /// Makefile extracts the version number for generating the file name /// for the distribution archive. -static const char *const VERSION = "3.28" +static const char *const VERSION = "3.29" #ifdef GIT_REV "-GIT" GIT_REV #endif @@ -1526,8 +1526,8 @@ void cMenuSetupSoft::Store(void) { SetupStore("DetachFromMainMenu", ConfigDetachFromMainMenu = DetachFromMainMenu); switch (OsdSize) { case 0: - OsdWidth = 0; - OsdHeight = 0; + OsdWidth = 1920; + OsdHeight = 1080; break; case 1: OsdWidth = 1920; diff --git a/video.c b/video.c index c30d9c8..f38ed8e 100644 --- a/video.c +++ b/video.c @@ -5383,8 +5383,10 @@ void VideoOsdInit(void) { // printf("\nset osd %d x %d\n",OsdWidth,OsdHeight); if (posd) free(posd); - posd = (unsigned char *)calloc((OsdWidth + 1) * (OsdHeight + 1) * 4, 1); - // posd = (unsigned char *)calloc((4096 + 1) * (2160 + 1) * 4, 1); + if (OsdWidth >= 1920 && OsdHeight >= 1080) + posd = (unsigned char *)calloc((OsdWidth + 1) * (OsdHeight + 1) * 4, 1); + else + posd = (unsigned char *)calloc((4096 + 1) * (2160 + 1) * 4, 1); VideoOsdClear(); }