From d9376fc86ffec26f134e89293a4342c4b99f0e5b Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 13 Jan 2017 13:35:31 +0100 Subject: 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.) --- video/vaapi.h | 1 + 1 file changed, 1 insertion(+) (limited to 'video/vaapi.h') 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; -- cgit v1.2.3