diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-11-21 00:01:01 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-11-21 00:01:01 +0100 |
commit | 2879d64d402549b1194b7400631a91d84aba96e1 (patch) | |
tree | 38978d5c503ea54e100c660cd716c5bc6dd7d6b2 | |
parent | a033d7c98a2ff45da7b664702699287aeb05b009 (diff) |
Revert "va sync buffer/surface"
This reverts commit a033d7c98a2ff45da7b664702699287aeb05b009.
-rw-r--r-- | src/utils.c | 8 |
1 files changed, 3 insertions, 5 deletions
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) |