From bc8a13e1efcfe0bea083c911c35b528dfb899106 Mon Sep 17 00:00:00 2001 From: Johns Date: Sat, 21 Jan 2012 21:56:19 +0100 Subject: [PATCH] Call VdpauMixerSetup only, if mixer setup. --- video.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/video.c b/video.c index bb93a83..3d01cd3 100644 --- a/video.c +++ b/video.c @@ -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; }