From f90b2747206ab2d50db47e510727980f5129e2f6 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 29 Apr 2024 20:47:08 +0200 Subject: Cleanup, clear bg on init --- src/capture/capture.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/capture') diff --git a/src/capture/capture.c b/src/capture/capture.c index cec0b0d..670114e 100644 --- a/src/capture/capture.c +++ b/src/capture/capture.c @@ -180,6 +180,8 @@ bool gsr_capture_base_setup_vaapi_textures(gsr_capture_base *self, AVFrame *fram return false; } + gsr_color_conversion_clear(&self->color_conversion); + return true; } else { fprintf(stderr, "gsr error: gsr_capture_kms_setup_vaapi_textures: unexpected fourcc %u for output drm fd, expected nv12 or p010\n", prime->fourcc); @@ -279,6 +281,8 @@ bool gsr_capture_base_setup_cuda_textures(gsr_capture_base *self, AVFrame *frame return false; } + gsr_color_conversion_clear(&self->color_conversion); + return true; } -- cgit v1.2.3