summaryrefslogtreecommitdiff
path: root/video.c
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 /video.c
parentacf377ec601f4a7b904e7aa85e9ef48ed5231e45 (diff)
downloadvdr-plugin-softhddevice-3d5e59a6e516dd58d0e93d283787a1f54515ece1.tar.gz
vdr-plugin-softhddevice-3d5e59a6e516dd58d0e93d283787a1f54515ece1.tar.bz2
Support multiple streams with ScaleVideo.
Diffstat (limited to 'video.c')
-rw-r--r--video.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/video.c b/video.c
index 2c29047..4f5ecd8 100644
--- a/video.c
+++ b/video.c
@@ -10230,14 +10230,14 @@ void VideoSetHue(int hue)
///
/// Set video output position.
///
-/// @param x video output x coordinate OSD relative
-/// @param y video output y coordinate OSD relative
-/// @param width video output width
-/// @param height video output height
-///
-/// @note FIXME: need to know which stream.
+/// @param hw_decoder video hardware decoder
+/// @param x video output x coordinate OSD relative
+/// @param y video output y coordinate OSD relative
+/// @param width video output width
+/// @param height video output height
///
-void VideoSetOutputPosition(int x, int y, int width, int height)
+void VideoSetOutputPosition(VideoHwDecoder * hw_decoder, int x, int y,
+ int width, int height)
{
static int last_x; ///< last video output window x
static int last_y; ///< last video output window y
@@ -10277,9 +10277,9 @@ void VideoSetOutputPosition(int x, int y, int width, int height)
// FIXME: add function to module class
#ifdef USE_VDPAU
if (VideoUsedModule == &VdpauModule) {
- VdpauSetOutputPosition(VdpauDecoders[0], last_x, last_y, last_width,
+ VdpauSetOutputPosition(&hw_decoder->Vdpau, last_x, last_y, last_width,
last_height);
- VdpauUpdateOutput(VdpauDecoders[0]);
+ VdpauUpdateOutput(&hw_decoder->Vdpau);
}
#endif
#ifdef USE_VAAPI