aboutsummaryrefslogtreecommitdiff
path: root/src/capture
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-04-29 20:47:08 +0200
committerdec05eba <dec05eba@protonmail.com>2024-05-03 19:38:36 +0200
commitf90b2747206ab2d50db47e510727980f5129e2f6 (patch)
tree4991e11513432f3dce7c3df5866b2fdd59f8155d /src/capture
parent3143358c3bfc882fb94c1ea906630fc0aa7fd061 (diff)
Cleanup, clear bg on init
Diffstat (limited to 'src/capture')
-rw-r--r--src/capture/capture.c4
1 files changed, 4 insertions, 0 deletions
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;
}