Fix build with vdr without yaepg support.

This commit is contained in:
Johns 2012-01-07 23:47:07 +01:00
parent fd60c3c132
commit 9568c5bd93
3 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,7 @@
User johns User johns
Date: Date:
Fix build with vdr without yaepg support.
Support yaepghd video picture output position change. Support yaepghd video picture output position change.
Date: Sat Jan 7 13:20:07 CET 2012 Date: Sat Jan 7 13:20:07 CET 2012

1
Todo
View File

@ -41,6 +41,7 @@ vdpau:
libva: libva:
hard channel switch hard channel switch
yaepghd (VaapiSetOutputPosition) support
libva-intel-driver: libva-intel-driver:
intel still has hangups most with 1080i intel still has hangups most with 1080i

View File

@ -135,9 +135,11 @@ cSoftOsd::~cSoftOsd(void)
//dsyslog("[softhddev]%s:\n", __FUNCTION__); //dsyslog("[softhddev]%s:\n", __FUNCTION__);
SetActive(false); SetActive(false);
#ifdef USE_YAEPG
if (vidWin.bpp) { if (vidWin.bpp) {
VideoSetOutputPosition(0, 0, 1920, 1080); VideoSetOutputPosition(0, 0, 1920, 1080);
} }
#endif
OsdClose(); OsdClose();
} }
@ -153,6 +155,7 @@ void cSoftOsd::Flush(void)
} }
// support yaepghd, video window // support yaepghd, video window
#ifdef USE_YAEPG
if (vidWin.bpp) { if (vidWin.bpp) {
dsyslog("[softhddev]%s: %dx%d+%d+%d\n", __FUNCTION__, dsyslog("[softhddev]%s: %dx%d+%d+%d\n", __FUNCTION__,
vidWin.Width(), vidWin.Height(), vidWin.x1, vidWin.y2 ); vidWin.Width(), vidWin.Height(), vidWin.x1, vidWin.y2 );
@ -161,6 +164,7 @@ void cSoftOsd::Flush(void)
VideoSetOutputPosition(Left() + vidWin.x1, Top() + vidWin.y1, VideoSetOutputPosition(Left() + vidWin.x1, Top() + vidWin.y1,
vidWin.Width(), vidWin.Height()); vidWin.Width(), vidWin.Height());
} }
#endif
if (!IsTrueColor()) { if (!IsTrueColor()) {
static char warned; static char warned;