summaryrefslogtreecommitdiff
path: root/softhddevice.cpp
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2013-01-01 15:21:28 +0100
committerJohns <johns98@gmx.net>2013-01-01 15:21:28 +0100
commit3d5e59a6e516dd58d0e93d283787a1f54515ece1 (patch)
tree43bcf98b0d5f12b4297d5c7b71c3199d987b0958 /softhddevice.cpp
parentacf377ec601f4a7b904e7aa85e9ef48ed5231e45 (diff)
downloadvdr-plugin-softhddevice-3d5e59a6e516dd58d0e93d283787a1f54515ece1.tar.gz
vdr-plugin-softhddevice-3d5e59a6e516dd58d0e93d283787a1f54515ece1.tar.bz2
Support multiple streams with ScaleVideo.
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r--softhddevice.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp
index 5ac8f11..d85f52e 100644
--- a/softhddevice.cpp
+++ b/softhddevice.cpp
@@ -324,7 +324,7 @@ cSoftOsd::~cSoftOsd(void)
::GetOsdSize(&width, &height, &video_aspect);
// works osd relative
- VideoSetOutputPosition(0, 0, width, height);
+ ::ScaleVideo(0, 0, width, height);
}
#endif
}
@@ -358,8 +358,8 @@ void cSoftOsd::Flush(void)
// FIXME: vidWin is OSD relative not video window.
// FIXME: doesn't work if fixed OSD width != real window width
// FIXME: solved in VideoSetOutputPosition
- VideoSetOutputPosition(Left() + vidWin.x1, Top() + vidWin.y1,
- vidWin.Width(), vidWin.Height());
+ ::ScaleVideo(Left() + vidWin.x1, Top() + vidWin.y1, vidWin.Width(),
+ vidWin.Height());
}
#endif
@@ -1913,7 +1913,7 @@ void cSoftHdDevice::ScaleVideo(const cRect & rect)
dsyslog("[softhddev]%s: %dx%d%+d%+d\n", __FUNCTION__, VidWinRect.Width(),
VidWinRect.Height(), VidWinRect.X(), VidWinRect.Y());
#endif
- VideoSetOutputPosition(rect.X(), rect.Y(), rect.Width(), rect.Height());
+ ::ScaleVideo(rect.X(), rect.Y(), rect.Width(), rect.Height());
}
#endif