From 5863fda414bbe5e164fddf6a75f7dc16680f841b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 22 Sep 2024 19:58:54 +0200 Subject: Comments --- src/encoder/video/vaapi.c | 1 + src/utils.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/encoder/video/vaapi.c b/src/encoder/video/vaapi.c index 03218cb..7c53647 100644 --- a/src/encoder/video/vaapi.c +++ b/src/encoder/video/vaapi.c @@ -102,6 +102,7 @@ static bool gsr_video_encoder_vaapi_setup_textures(gsr_video_encoder_vaapi *self uint32_t pitches[4]; uint64_t modifiers[4]; for(uint32_t j = 0; j < self->prime.layers[layer].num_planes; ++j) { + // TODO: Close these? in _stop, using self->prime fds[j] = self->prime.objects[self->prime.layers[layer].object_index[j]].fd; offsets[j] = self->prime.layers[layer].offset[j]; pitches[j] = self->prime.layers[layer].pitch[j]; diff --git a/src/utils.c b/src/utils.c index b4e34fd..42f4c40 100644 --- a/src/utils.c +++ b/src/utils.c @@ -165,7 +165,7 @@ static bool connector_get_property_by_name(int drmfd, drmModeConnectorPtr props, return false; } -/* TODO: Support more connector types*/ +/* TODO: Support more connector types */ static int get_connector_type_by_name(const char *name) { int len = strlen(name); if(len >= 5 && strncmp(name, "HDMI-", 5) == 0) -- cgit v1.2.3