diff options
author | Johns <johns98@gmx.net> | 2012-12-30 17:05:42 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-12-30 17:05:42 +0100 |
commit | 9719fef55b4ab2d6fc71aaee25c1bc58d02f4d8e (patch) | |
tree | 69df7bc31ccec0b0444d15aeba6335fde833ab99 /video.c | |
parent | 9b69045a20628883e90ac9e9fab04052b2a5326b (diff) | |
download | vdr-plugin-softhddevice-9719fef55b4ab2d6fc71aaee25c1bc58d02f4d8e.tar.gz vdr-plugin-softhddevice-9719fef55b4ab2d6fc71aaee25c1bc58d02f4d8e.tar.bz2 |
Fix video size not updated, when window size change.
Diffstat (limited to 'video.c')
-rw-r--r-- | video.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -8275,6 +8275,11 @@ static void VdpauSetVideoMode(void) VdpauInitOutputQueue(); for (i = 0; i < VdpauDecoderN; ++i) { + // reset video window, upper level needs to fix the positions + VdpauDecoders[i]->VideoX = 0; + VdpauDecoders[i]->VideoY = 0; + VdpauDecoders[i]->VideoWidth = VideoWindowWidth; + VdpauDecoders[i]->VideoHeight = VideoWindowHeight; VdpauUpdateOutput(VdpauDecoders[i]); } } @@ -10260,7 +10265,7 @@ void VideoSetOutputPosition(int x, int y, int width, int height) if (VideoUsedModule == &VdpauModule) { VdpauSetOutputPosition(VdpauDecoders[0], last_x, last_y, last_width, last_height); - VdpauSetVideoMode(); + VdpauUpdateOutput(VdpauDecoders[0]); } #endif #ifdef USE_VAAPI |