Skip to content
Snippets Groups Projects
Commit c25567fe authored by Philippe Gorley's avatar Philippe Gorley
Browse files

accel: fix vaapi drm

Change-Id: I37302afd2b8b7f18b92c213ba505f85120e72b02
parent e4a9748f
No related branches found
No related tags found
No related merge requests found
......@@ -156,7 +156,6 @@ bool
HardwareAccel::initDevice()
{
int ret = 0;
#ifdef HAVE_VAAPI_ACCEL_DRM
// default DRM device may not work on multi GPU computers, so check all possible values
if (hwType_ == AV_HWDEVICE_TYPE_VAAPI) {
const std::string path = "/dev/dri/";
......@@ -170,7 +169,6 @@ HardwareAccel::initDevice()
}
}
}
#endif
// default device (nullptr) works for most cases
ret = av_hwdevice_ctx_create(&deviceCtx_, hwType_, nullptr, nullptr, 0);
return ret >= 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment