From f3e5a14fdf470090170412179ddb6ba1b907aec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20K=C3=B6nig?= Date: Sat, 20 Jan 2024 11:01:39 +0100 Subject: [PATCH] Move flush for libplacebo for PIP --- video.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/video.c b/video.c index fe32f80..9e5624e 100644 --- a/video.c +++ b/video.c @@ -4160,7 +4160,7 @@ static void CuvidMixVideo(CuvidDecoder *decoder, __attribute__((unused)) int lev Debug(4, "Failed rendering frame!\n"); } - pl_gpu_finish(p->gpu); + // printf("Rendertime %ld -- \n,",GetusTicks() - tt); if (VideoScalerTest) { // left side test scaler @@ -4474,7 +4474,9 @@ static void CuvidDisplayFrame(void) { decoder->grab = 0; } } - +#ifdef PLACEBO + pl_gpu_finish(p->gpu); +#endif #ifndef PLACEBO // add osd to surface