aboutsummaryrefslogtreecommitdiff
path: root/src/capture
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-07-22 01:24:23 +0200
committerdec05eba <dec05eba@protonmail.com>2024-07-22 01:24:23 +0200
commit37107bac8d1088f4f541afe99a7c9aea0801e99d (patch)
tree8ceace3ce014ca92591e36443cbeddea612e89f4 /src/capture
parentf9a41041ec3c2f88033f1ec0dd32ed0270b75c2f (diff)
Fix deskto portal capture on nvidia (add missing modifiers)
Diffstat (limited to 'src/capture')
-rw-r--r--src/capture/kms.c1
-rw-r--r--src/capture/xcomposite.c10
2 files changed, 1 insertions, 10 deletions
diff --git a/src/capture/kms.c b/src/capture/kms.c
index c078b90..50fe01a 100644
--- a/src/capture/kms.c
+++ b/src/capture/kms.c
@@ -232,6 +232,7 @@ static bool hdr_metadata_is_supported_format(const struct hdr_output_metadata *h
hdr_metadata->hdmi_metadata_type1.eotf == HDMI_EOTF_SMPTE_ST2084;
}
+// TODO: Check if this hdr data can be changed after the call to av_packet_side_data_add
static void gsr_kms_set_hdr_metadata(gsr_capture_kms *self, AVStream *video_stream, gsr_kms_response_fd *drm_fd) {
if(self->hdr_metadata_set)
return;
diff --git a/src/capture/xcomposite.c b/src/capture/xcomposite.c
index d9cb595..52afc20 100644
--- a/src/capture/xcomposite.c
+++ b/src/capture/xcomposite.c
@@ -133,16 +133,6 @@ static int gsr_capture_xcomposite_start(gsr_capture *cap, AVCodecContext *video_
// TODO: Get select and add these on top of it and then restore at the end. Also do the same in other xcomposite
XSelectInput(self->params.egl->x11.dpy, self->window, StructureNotifyMask | ExposureMask);
- if(!self->params.egl->eglExportDMABUFImageQueryMESA) {
- fprintf(stderr, "gsr error: gsr_capture_xcomposite_start: could not find eglExportDMABUFImageQueryMESA\n");
- return -1;
- }
-
- if(!self->params.egl->eglExportDMABUFImageMESA) {
- fprintf(stderr, "gsr error: gsr_capture_xcomposite_start: could not find eglExportDMABUFImageMESA\n");
- return -1;
- }
-
/* Disable vsync */
self->params.egl->eglSwapInterval(self->params.egl->egl_display, 0);
if(window_texture_init(&self->window_texture, self->params.egl->x11.dpy, self->window, self->params.egl) != 0 && !self->params.follow_focused) {