mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Call VdpauMixerSetup only, if mixer setup.
This commit is contained in:
parent
bd7e6143c7
commit
bc8a13e1ef
4
video.c
4
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,8 +6092,10 @@ static void VdpauDisplayFrame(void)
|
||||
|
||||
if (VideoSurfaceModesChanged) { // handle changed modes
|
||||
for (i = 0; i < VdpauDecoderN; ++i) {
|
||||
if (VdpauDecoders[i]->VideoMixer != VDP_INVALID_HANDLE) {
|
||||
VdpauMixerSetup(VdpauDecoders[i]);
|
||||
}
|
||||
}
|
||||
VideoSurfaceModesChanged = 0;
|
||||
}
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user