Linux/VAAPI: implement vaSyncBuffer stub for libva <2.9.0 (#886)

This commit is contained in:
Conn O'Griofa 2023-02-07 21:02:42 +00:00 committed by GitHub
parent 905904960d
commit 1b45b57d07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,17 @@
extern "C" {
#include <libavcodec/avcodec.h>
#include <va/va.h>
#if !VA_CHECK_VERSION(1, 9, 0)
/* vaSyncBuffer stub allows Sunshine built against libva <2.9.0
to link against ffmpeg on libva 2.9.0 or later */
VAStatus vaSyncBuffer(
VADisplay dpy,
VABufferID buf_id,
uint64_t timeout_ns) {
return VA_STATUS_ERROR_UNIMPLEMENTED;
}
#endif
}
#include "graphics.h"