mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
fixed Still Picture
This commit is contained in:
parent
1231f48cb1
commit
9994396cfb
5
video.c
5
video.c
@ -955,7 +955,7 @@ static void GlxOsdDrawARGB(int xi, int yi, int width, int height, int pitch,
|
|||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
end = GetMsTicks();
|
end = GetMsTicks();
|
||||||
|
|
||||||
Debug(3, "video/glx: osd upload %dx%d%+d%+d %dms %d\n", width, height, x, y, end - start, width * height * 4);
|
Debug(4, "video/glx: osd upload %dx%d%+d%+d %dms %d\n", width, height, x, y, end - start, width * height * 4);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2948,6 +2948,7 @@ static void CuvidMixVideo(CuvidDecoder * decoder, int level)
|
|||||||
|
|
||||||
//printf("decoder Y %d\n",decoder->OutputY);
|
//printf("decoder Y %d\n",decoder->OutputY);
|
||||||
|
|
||||||
|
|
||||||
y = VideoWindowHeight - decoder->OutputY - decoder->OutputHeight;
|
y = VideoWindowHeight - decoder->OutputY - decoder->OutputHeight;
|
||||||
if (y <0 )
|
if (y <0 )
|
||||||
y = 0;
|
y = 0;
|
||||||
@ -3058,7 +3059,7 @@ static void CuvidAdvanceDecoderFrame(CuvidDecoder * decoder)
|
|||||||
// need 4 frames for interlaced
|
// need 4 frames for interlaced
|
||||||
filled = atomic_read(&decoder->SurfacesFilled);
|
filled = atomic_read(&decoder->SurfacesFilled);
|
||||||
//JOJO if (filled <= 1 + 2 * decoder->Interlaced) {
|
//JOJO if (filled <= 1 + 2 * decoder->Interlaced) {
|
||||||
if (filled < 1 + 2 * decoder->Interlaced) {
|
if (filled <= 1 + 2 * decoder->Interlaced) {
|
||||||
// keep use of last surface
|
// keep use of last surface
|
||||||
++decoder->FramesDuped;
|
++decoder->FramesDuped;
|
||||||
// FIXME: don't warn after stream start, don't warn during pause
|
// FIXME: don't warn after stream start, don't warn during pause
|
||||||
|
Loading…
x
Reference in New Issue
Block a user