aboutsummaryrefslogtreecommitdiff
path: root/src/capture/kms_vaapi.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-05-17 18:49:16 +0200
committerdec05eba <dec05eba@protonmail.com>2023-05-17 18:49:16 +0200
commit6cff1a49d2b124266f8da41065c471d80cdd32e2 (patch)
treeff15da38af695c0bb149165db201765e0f4fc050 /src/capture/kms_vaapi.c
parent715a3c612a606465ee5526efe53029741ee4c7f9 (diff)
Fix all warnings
Diffstat (limited to 'src/capture/kms_vaapi.c')
-rw-r--r--src/capture/kms_vaapi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/capture/kms_vaapi.c b/src/capture/kms_vaapi.c
index 765da68..16c746c 100644
--- a/src/capture/kms_vaapi.c
+++ b/src/capture/kms_vaapi.c
@@ -135,6 +135,7 @@ static bool properties_has_atom(Atom *props, int nprop, Atom atom) {
}
static void monitor_callback(const XRROutputInfo *output_info, const XRRCrtcInfo *crt_info, const XRRModeInfo *mode_info, void *userdata) {
+ (void)mode_info;
MonitorCallbackUserdata *monitor_callback_userdata = userdata;
++monitor_callback_userdata->num_monitors;
@@ -436,6 +437,7 @@ static gsr_kms_response_fd* find_largest_drm(gsr_kms_response *kms_response) {
}
static int gsr_capture_kms_vaapi_capture(gsr_capture *cap, AVFrame *frame) {
+ (void)frame;
gsr_capture_kms_vaapi *cap_kms = cap->priv;
for(int i = 0; i < cap_kms->kms_response.num_fds; ++i) {