1
0
mirror of https://github.com/jojo61/vdr-plugin-softhdcuvid.git synced 2023-10-10 13:37:41 +02:00

Try Fix for tvguide

This commit is contained in:
jojo61 2020-03-04 16:34:40 +01:00
parent 189d8cfa53
commit 6c0f80979f
2 changed files with 13 additions and 8 deletions

View File

@ -2002,10 +2002,11 @@ cOglOsd::cOglOsd(int Left, int Top, uint Level, std::shared_ptr<cOglThread> oglT
dsyslog("[softhddev]cOglOsd osdLeft %d osdTop %d screenWidth %d screenHeight %d", Left, Top, osdWidth, osdHeight);
#if 0
if (posd)
free(posd);
posd = (unsigned char *)calloc( osdWidth * osdHeight * 4, 1 );
#endif
// create output framebuffer
if (!oFb) {
@ -2019,11 +2020,7 @@ cOglOsd::cOglOsd(int Left, int Top, uint Level, std::shared_ptr<cOglThread> oglT
cOglOsd::~cOglOsd() {
OsdClose();
SetActive(false);
#if 0
if (posd)
free(posd);
posd = 0;
#endif
oglThread->DoCmd(new cOglCmdDeleteFb(bFb));
}

12
video.c
View File

@ -392,7 +392,7 @@ static char VideoSurfaceModesChanged; ///< flag surface modes changed
static const char VideoTransparentOsd = 1;
static uint32_t VideoBackground; ///< video background color
static char VideoStudioLevels; ///< flag use studio levels
char VideoStudioLevels; ///< flag use studio levels
/// Default deinterlace mode.
static VideoDeinterlaceModes VideoDeinterlace[VideoResolutionMax];
@ -3841,7 +3841,7 @@ void make_osd_overlay(int x, int y, int width, int height)
{
const struct pl_fmt *fmt;
struct pl_overlay *pl;
const float black[4] = { 0.0f, 0.0f, 0.0f, 1.0f };
int offset = VideoWindowHeight - (VideoWindowHeight - height - y) - (VideoWindowHeight - y);
@ -4994,6 +4994,10 @@ void VideoOsdInit(void)
OsdWidth = VideoWindowWidth;
OsdHeight = VideoWindowHeight;
}
if (posd)
free(posd);
posd = (unsigned char *)calloc( OsdWidth * OsdHeight * 4, 1 );
VideoOsdClear();
}
@ -6627,6 +6631,10 @@ void VideoSetCutLeftRight(int pixels[VideoResolutionMax])
void VideoSetStudioLevels(int onoff)
{
VideoStudioLevels = onoff;
#ifdef GAMMA
Set_Gamma(2.4,6500);
#endif
}
///