diff options
author | Johns <johns98@gmx.net> | 2012-01-21 21:56:19 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-01-21 21:56:19 +0100 |
commit | bc8a13e1efcfe0bea083c911c35b528dfb899106 (patch) | |
tree | bc2e055d56037698713e6fa429c858c9dcd1834c | |
parent | bd7e6143c734a40eadd5937a7f4a8d03070e8b11 (diff) | |
download | vdr-plugin-softhddevice-bc8a13e1efcfe0bea083c911c35b528dfb899106.tar.gz vdr-plugin-softhddevice-bc8a13e1efcfe0bea083c911c35b528dfb899106.tar.bz2 |
Call VdpauMixerSetup only, if mixer setup.
-rw-r--r-- | video.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -6003,6 +6003,8 @@ static void VdpauMixVideo(VdpauDecoder * decoder) /// /// @param decoder VDPAU hw decoder /// +/// @FIXME: render only video area, not fullscreen! +/// static void VdpauBlackSurface(VdpauDecoder * decoder) { VdpStatus status; @@ -6090,7 +6092,9 @@ static void VdpauDisplayFrame(void) if (VideoSurfaceModesChanged) { // handle changed modes for (i = 0; i < VdpauDecoderN; ++i) { - VdpauMixerSetup(VdpauDecoders[i]); + if (VdpauDecoders[i]->VideoMixer != VDP_INVALID_HANDLE) { + VdpauMixerSetup(VdpauDecoders[i]); + } } VideoSurfaceModesChanged = 0; } |