Linux/VAAPI: implement vaSyncBuffer stub for libva <2.9.0 (#886)
This commit is contained in:
parent
905904960d
commit
1b45b57d07
1 changed files with 11 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue