diff options
author | Johns <johns98@gmx.net> | 2013-11-23 16:48:02 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2013-11-23 16:48:02 +0100 |
commit | cfda3ba39dbc85ef5f02a88467c07bd73e479ed5 (patch) | |
tree | 0e1bc31071895b26d3a012c4b09b62cd5d1850b3 /video.c | |
parent | 0e40f5f8723951b731cfb56f66947141d18f1526 (diff) | |
download | vdr-plugin-softhddevice-cfda3ba39dbc85ef5f02a88467c07bd73e479ed5.tar.gz vdr-plugin-softhddevice-cfda3ba39dbc85ef5f02a88467c07bd73e479ed5.tar.bz2 |
Fix bug: Option softhddevice.BlackPicture has no effect.
Diffstat (limited to 'video.c')
-rw-r--r-- | video.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -4979,7 +4979,10 @@ static void VaapiSyncDecoder(VaapiDecoder * decoder) _("video: decoder buffer empty, " "duping frame (%d/%d) %d v-buf\n"), decoder->FramesDuped, decoder->FrameCounter, VideoGetBuffers(decoder->Stream)); - if (decoder->Closing < -300) { + // some time no new picture or black video configured + if (decoder->Closing < -300 || (VideoShowBlackPicture + && decoder->Closing)) { + // clear ring buffer to trigger black picture atomic_set(&decoder->SurfacesFilled, 0); } } @@ -8609,7 +8612,10 @@ static void VdpauSyncDecoder(VdpauDecoder * decoder) _("video: decoder buffer empty, " "duping frame (%d/%d) %d v-buf\n"), decoder->FramesDuped, decoder->FrameCounter, VideoGetBuffers(decoder->Stream)); - if (decoder->Closing < -300) { + // some time no new picture or black video configured + if (decoder->Closing < -300 || (VideoShowBlackPicture + && decoder->Closing)) { + // clear ring buffer to trigger black picture atomic_set(&decoder->SurfacesFilled, 0); } } @@ -8925,7 +8931,7 @@ static void VdpauDisplayHandlerThread(void) static void VdpauSetOutputPosition(VdpauDecoder * decoder, int x, int y, int width, int height) { - Debug(3, "video/vdapu: output %dx%d%+d%+d\n", width, height, x, y); + Debug(3, "video/vdpau: output %dx%d%+d%+d\n", width, height, x, y); decoder->VideoX = x; decoder->VideoY = y; |