vaapi window capture: resizing window should make the window have its original size instead of resized to video size

This commit is contained in:
dec05eba 2023-04-21 21:14:06 +02:00 committed by dec05eba
parent 49ac7d7429
commit 72594e3d45

View File

@ -469,10 +469,7 @@ static void gsr_capture_xcomposite_vaapi_tick(gsr_capture *cap, AVCodecContext *
VAProcPipelineParameterBuffer params = {0}; VAProcPipelineParameterBuffer params = {0};
params.surface = cap_xcomp->input_surface; params.surface = cap_xcomp->input_surface;
params.surface_region = NULL; params.surface_region = NULL;
if(cap_xcomp->params.follow_focused) params.output_region = &cap_xcomp->output_region;
params.output_region = &cap_xcomp->output_region;
else
params.output_region = NULL;
params.output_background_color = 0; params.output_background_color = 0;
params.filter_flags = VA_FRAME_PICTURE; params.filter_flags = VA_FRAME_PICTURE;