Fix video size not updated for VAAPI.

This commit is contained in:
Johns 2013-01-02 23:59:46 +01:00
parent 63c22a13cf
commit 06b8e3d784
1 changed files with 5 additions and 0 deletions

View File

@ -4810,6 +4810,11 @@ static void VaapiSetVideoMode(void)
int i;
for (i = 0; i < VaapiDecoderN; ++i) {
// reset video window, upper level needs to fix the positions
VaapiDecoders[i]->VideoX = 0;
VaapiDecoders[i]->VideoY = 0;
VaapiDecoders[i]->VideoWidth = VideoWindowWidth;
VaapiDecoders[i]->VideoHeight = VideoWindowHeight;
VaapiUpdateOutput(VaapiDecoders[i]);
}
}