From 2879d64d402549b1194b7400631a91d84aba96e1 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 21 Nov 2024 00:01:01 +0100 Subject: Revert "va sync buffer/surface" This reverts commit a033d7c98a2ff45da7b664702699287aeb05b009. --- src/utils.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/utils.c') diff --git a/src/utils.c b/src/utils.c index f93b04a..e871126 100644 --- a/src/utils.c +++ b/src/utils.c @@ -816,8 +816,6 @@ bool vaapi_copy_drm_planes_to_video_surface(AVCodecContext *video_codec_context, // if (first surface to render) // pipeline_param->output_background_color = 0xff000000; // black - vaSyncSurface(va_dpy, input_surface_id); - va_status = vaCreateBuffer(va_dpy, context_id, VAProcPipelineParameterBufferType, sizeof(params), 1, ¶ms, &buffer_id); if(va_status != VA_STATUS_SUCCESS) { fprintf(stderr, "gsr error: vaapi_copy_drm_planes_to_video_surface: vaCreateBuffer failed, error: %d\n", va_status); @@ -847,9 +845,9 @@ bool vaapi_copy_drm_planes_to_video_surface(AVCodecContext *video_codec_context, goto done; } - vaSyncBuffer(va_dpy, buffer_id, 1000ULL * 1000ULL * 1000ULL); // 1 Second - //vaSyncSurface(va_dpy, input_surface_id); - vaSyncSurface(va_dpy, output_surface_id); + // vaSyncBuffer(va_dpy, buffer_id, 1000 * 1000 * 1000); + // vaSyncSurface(va_dpy, input_surface_id); + // vaSyncSurface(va_dpy, output_surface_id); done: if(buffer_id) -- cgit v1.2.3