aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba®protonmail.com>2023-04-21 21:14:06 +0200
committerdec05eba <dec05eba@protonmail.com>2023-04-22 02:11:57 +0200
commit72594e3d45e05d37264ea36d19d5c075bf8a9fdf (patch)
tree20fa49432bec2d52a0aafa43f41d36d63581a15a /src
parent49ac7d74292339fe9d52ce19de23d0ce25fa9bd1 (diff)
vaapi window capture: resizing window should make the window have its original size instead of resized to video size
Diffstat (limited to 'src')
-rw-r--r--src/capture/xcomposite_vaapi.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/capture/xcomposite_vaapi.c b/src/capture/xcomposite_vaapi.c
index 580cf18..522d75b 100644
--- a/src/capture/xcomposite_vaapi.c
+++ b/src/capture/xcomposite_vaapi.c
@@ -469,10 +469,7 @@ static void gsr_capture_xcomposite_vaapi_tick(gsr_capture *cap, AVCodecContext *
VAProcPipelineParameterBuffer params = {0};
params.surface = cap_xcomp->input_surface;
params.surface_region = NULL;
- if(cap_xcomp->params.follow_focused)
- params.output_region = &cap_xcomp->output_region;
- else
- params.output_region = NULL;
+ params.output_region = &cap_xcomp->output_region;
params.output_background_color = 0;
params.filter_flags = VA_FRAME_PICTURE;