diff options
author | Johns <johns98@gmx.net> | 2012-04-22 21:01:34 +0200 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-04-22 21:01:34 +0200 |
commit | 47d840bbff5625b25d62fdab58e9cb2376265de0 (patch) | |
tree | 77163f3de679ce0f2ba3c6d818fb1965bdd4d052 | |
parent | 207871fd9b534c896f604bdd2988580c8c8f9bc9 (diff) | |
download | vdr-plugin-softhddevice-47d840bbff5625b25d62fdab58e9cb2376265de0.tar.gz vdr-plugin-softhddevice-47d840bbff5625b25d62fdab58e9cb2376265de0.tar.bz2 |
Force black picture after start or suspend.
-rw-r--r-- | video.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1772,6 +1772,8 @@ static VaapiDecoder *VaapiNewHwDecoder(void) decoder->OutputWidth = VideoWindowWidth; decoder->OutputHeight = VideoWindowHeight; + decoder->Closing = -300 - 1; + decoder->PTS = AV_NOPTS_VALUE; // get/put still not working @@ -5679,9 +5681,6 @@ static VdpauDecoder *VdpauNewHwDecoder(void) } #endif - decoder->OutputWidth = VideoWindowWidth; - decoder->OutputHeight = VideoWindowHeight; - // Procamp operation parameterization data decoder->Procamp.struct_version = VDP_PROCAMP_VERSION; decoder->Procamp.brightness = 0.0; @@ -5689,6 +5688,11 @@ static VdpauDecoder *VdpauNewHwDecoder(void) decoder->Procamp.saturation = 1.0; decoder->Procamp.hue = 0.0; // default values + decoder->OutputWidth = VideoWindowWidth; + decoder->OutputHeight = VideoWindowHeight; + + decoder->Closing = -300 - 1; + decoder->PTS = AV_NOPTS_VALUE; // FIXME: hack |