mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
fix PIP
This commit is contained in:
parent
56ee6f0cec
commit
3d183b0fdc
3
video.c
3
video.c
@ -3562,7 +3562,7 @@ static void CuvidMixVideo(CuvidDecoder * decoder, int level)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
decoder->newchannel = 0;
|
decoder->newchannel = 0;
|
||||||
pl_tex_clear(p->gpu,target->fbo,(float[4]){0});
|
|
||||||
if (!pl_render_image(p->renderer, &decoder->pl_images[current], target, &render_params)) {
|
if (!pl_render_image(p->renderer, &decoder->pl_images[current], target, &render_params)) {
|
||||||
Fatal(_("Failed rendering frame!\n"));
|
Fatal(_("Failed rendering frame!\n"));
|
||||||
}
|
}
|
||||||
@ -3723,6 +3723,7 @@ static void CuvidDisplayFrame(void)
|
|||||||
// target.repr.bits.color_depth = 16;
|
// target.repr.bits.color_depth = 16;
|
||||||
// target.repr.bits.bit_shift =0;
|
// target.repr.bits.bit_shift =0;
|
||||||
|
|
||||||
|
pl_tex_clear(p->gpu,target.fbo,(float[4]){0});
|
||||||
switch (VulkanTargetColorSpace) {
|
switch (VulkanTargetColorSpace) {
|
||||||
case 0:
|
case 0:
|
||||||
memcpy(&target.color,&pl_color_space_monitor,sizeof(struct pl_color_space));
|
memcpy(&target.color,&pl_color_space_monitor,sizeof(struct pl_color_space));
|
||||||
|
Loading…
Reference in New Issue
Block a user