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:
parent
3f15f798bb
commit
fdedeb6944
@ -424,14 +424,12 @@ void cSoftOsd::Flush(void)
|
||||
// support yaepghd, video window
|
||||
if (vidWin.bpp) {
|
||||
#ifdef OSD_DEBUG
|
||||
dsyslog("[softhddev]%s: %dx%d%+d%+d\n", __FUNCTION__, vidWin.Width(),
|
||||
vidWin.Height(), vidWin.x1, vidWin.y2);
|
||||
dsyslog("[softhddev]%s: %dx%d%+d%+d\n", __FUNCTION__, vidWin.Width(), vidWin.Height(), vidWin.x1, vidWin.y2);
|
||||
#endif
|
||||
// FIXME: vidWin is OSD relative not video window.
|
||||
// FIXME: doesn't work if fixed OSD width != real window width
|
||||
// FIXME: solved in VideoSetOutputPosition
|
||||
::ScaleVideo(Left() + vidWin.x1, Top() + vidWin.y1, vidWin.Width(),
|
||||
vidWin.Height());
|
||||
::ScaleVideo(Left() + vidWin.x1, Top() + vidWin.y1, vidWin.Width(), vidWin.Height());
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -3644,10 +3642,6 @@ cString cPluginSoftHdDevice::SVDRPCommand(const char *command,
|
||||
cControl::Attach();
|
||||
Suspend(1, 1, 0);
|
||||
SuspendMode = SUSPEND_DETACHED;
|
||||
#ifdef USE_OPENGLOSD_no
|
||||
dsyslog("[softhddev]stopping Ogl Thread svdrp DETA");
|
||||
cSoftOsdProvider::StopOpenGlThread();
|
||||
#endif
|
||||
return "SoftHdDevice is detached";
|
||||
}
|
||||
if (!strcasecmp(command, "ATTA")) {
|
||||
|
6
video.c
6
video.c
@ -1204,6 +1204,9 @@ static void GlxInit(void)
|
||||
GlxEnabled = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
Debug(3, "Chosen visual ID = 0x%x\n", vi->visualid );
|
||||
|
||||
context = glXCreateContext(XlibDisplay, vi, NULL, GL_TRUE);
|
||||
if (!context) {
|
||||
Fatal(_("video/glx: can't create glx context\n"));
|
||||
@ -1309,12 +1312,15 @@ static void GlxExit(void)
|
||||
}
|
||||
if (GlxSharedContext) {
|
||||
glXDestroyContext(XlibDisplay, GlxSharedContext);
|
||||
GlxCheck();
|
||||
}
|
||||
if (GlxContext) {
|
||||
glXDestroyContext(XlibDisplay, GlxContext);
|
||||
GlxCheck();
|
||||
}
|
||||
if (GlxThreadContext) {
|
||||
glXDestroyContext(XlibDisplay, GlxThreadContext);
|
||||
GlxCheck();
|
||||
}
|
||||
// FIXME: must free GlxVisualInfo
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user