summaryrefslogtreecommitdiffstats
path: root/video/vaapi.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-01-13 13:35:31 +0100
committerwm4 <wm4@nowhere>2017-01-13 13:35:31 +0100
commitd9376fc86ffec26f134e89293a4342c4b99f0e5b (patch)
tree1324eb804aa3c834b6fb6c39f1685c351ce89b78 /video/vaapi.h
parentb26ab4d08caeb487208271ac6f51c6e3f1c5e5e6 (diff)
downloadmpv-d9376fc86ffec26f134e89293a4342c4b99f0e5b.tar.bz2
mpv-d9376fc86ffec26f134e89293a4342c4b99f0e5b.tar.xz
vaapi: always create AVHWDeviceContext on init
For convenience. Since we still have code that works even if creating a AVHWDeviceContext fails, failure is ignored. (Although currently, it succeeds creation even with the stale/abandoned vdpau wrapper driver.)
Diffstat (limited to 'video/vaapi.h')
-rw-r--r--video/vaapi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/vaapi.h b/video/vaapi.h
index 68d8d4383d..01fb4fa980 100644
--- a/video/vaapi.h
+++ b/video/vaapi.h
@@ -33,6 +33,7 @@ struct mp_vaapi_ctx {
struct mp_hwdec_ctx hwctx;
struct mp_log *log;
VADisplay display;
+ struct AVBufferRef *av_device_ref; // AVVAAPIDeviceContext*
struct va_image_formats *image_formats;
bool gpu_memcpy_message;
pthread_mutex_t lock;