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

more debugs

This commit is contained in:
jojo61 2018-09-30 15:26:55 +02:00
parent 3f15f798bb
commit fdedeb6944
2 changed files with 16 additions and 16 deletions

View File

@ -392,11 +392,11 @@ eOsdError cSoftOsd::SetAreas(const tArea * areas, int n)
// clear old OSD, when new areas are set // clear old OSD, when new areas are set
if (!IsTrueColor()) { if (!IsTrueColor()) {
cBitmap *bitmap; cBitmap *bitmap;
int i; int i;
for (i = 0; (bitmap = GetBitmap(i)); i++) { for (i = 0; (bitmap = GetBitmap(i)); i++) {
bitmap->Clean(); bitmap->Clean();
} }
} }
if (Active()) { if (Active()) {
VideoOsdClear(); VideoOsdClear();
@ -418,20 +418,18 @@ void cSoftOsd::Flush(void)
#endif #endif
if (!Active()) { // this osd is not active if (!Active()) { // this osd is not active
return; return;
} }
#ifdef USE_YAEPG #ifdef USE_YAEPG
// support yaepghd, video window // support yaepghd, video window
if (vidWin.bpp) { if (vidWin.bpp) {
#ifdef OSD_DEBUG #ifdef OSD_DEBUG
dsyslog("[softhddev]%s: %dx%d%+d%+d\n", __FUNCTION__, vidWin.Width(), dsyslog("[softhddev]%s: %dx%d%+d%+d\n", __FUNCTION__, vidWin.Width(), vidWin.Height(), vidWin.x1, vidWin.y2);
vidWin.Height(), vidWin.x1, vidWin.y2);
#endif #endif
// FIXME: vidWin is OSD relative not video window. // FIXME: vidWin is OSD relative not video window.
// FIXME: doesn't work if fixed OSD width != real window width // FIXME: doesn't work if fixed OSD width != real window width
// FIXME: solved in VideoSetOutputPosition // FIXME: solved in VideoSetOutputPosition
::ScaleVideo(Left() + vidWin.x1, Top() + vidWin.y1, vidWin.Width(), ::ScaleVideo(Left() + vidWin.x1, Top() + vidWin.y1, vidWin.Width(), vidWin.Height());
vidWin.Height());
} }
#endif #endif
@ -3644,10 +3642,6 @@ cString cPluginSoftHdDevice::SVDRPCommand(const char *command,
cControl::Attach(); cControl::Attach();
Suspend(1, 1, 0); Suspend(1, 1, 0);
SuspendMode = SUSPEND_DETACHED; SuspendMode = SUSPEND_DETACHED;
#ifdef USE_OPENGLOSD_no
dsyslog("[softhddev]stopping Ogl Thread svdrp DETA");
cSoftOsdProvider::StopOpenGlThread();
#endif
return "SoftHdDevice is detached"; return "SoftHdDevice is detached";
} }
if (!strcasecmp(command, "ATTA")) { if (!strcasecmp(command, "ATTA")) {

View File

@ -1204,6 +1204,9 @@ static void GlxInit(void)
GlxEnabled = 0; GlxEnabled = 0;
return; return;
} }
Debug(3, "Chosen visual ID = 0x%x\n", vi->visualid );
context = glXCreateContext(XlibDisplay, vi, NULL, GL_TRUE); context = glXCreateContext(XlibDisplay, vi, NULL, GL_TRUE);
if (!context) { if (!context) {
Fatal(_("video/glx: can't create glx context\n")); Fatal(_("video/glx: can't create glx context\n"));
@ -1309,12 +1312,15 @@ static void GlxExit(void)
} }
if (GlxSharedContext) { if (GlxSharedContext) {
glXDestroyContext(XlibDisplay, GlxSharedContext); glXDestroyContext(XlibDisplay, GlxSharedContext);
GlxCheck();
} }
if (GlxContext) { if (GlxContext) {
glXDestroyContext(XlibDisplay, GlxContext); glXDestroyContext(XlibDisplay, GlxContext);
GlxCheck();
} }
if (GlxThreadContext) { if (GlxThreadContext) {
glXDestroyContext(XlibDisplay, GlxThreadContext); glXDestroyContext(XlibDisplay, GlxThreadContext);
GlxCheck();
} }
// FIXME: must free GlxVisualInfo // FIXME: must free GlxVisualInfo
} }